Reusable Java library of general tools with minimal external dependencies.
For questions or support, please contact us:
Email: support@aoindustries.com
Phone: 1-800-519-9541
Phone: +1-251-607-9556
Web: https://www.aoindustries.com/contact
public static class UnionMethodSet.SetMethod<E> extends UnionMethodSet.ReflectionMethod<E>
method| Constructor and Description |
|---|
SetMethod(Class<?> targetClass,
String methodName) |
SetMethod(Method method) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(Object target,
Object element)
Checks if the set returned by the method contains the non-null object element.
|
Set<? extends E> |
getSet(Object target)
Gets the set view of the method result or
null if set is
not applicable. |
E |
getSingleton(Object target)
Gets the single value that represents the set or
null if cannot
be represented as a single value. |
getMethodpublic SetMethod(Class<?> targetClass, String methodName) throws NoSuchMethodException
NoSuchMethodExceptionpublic SetMethod(Method method)
public boolean contains(Object target, Object element)
UnionMethodSet.Methodpublic E getSingleton(Object target)
UnionMethodSet.Methodnull if cannot
be represented as a single value.public Set<? extends E> getSet(Object target)
UnionMethodSet.Methodnull if set is
not applicable.Copyright © 2000–2016 AO Industries, Inc.. All rights reserved.