- java.lang.Object
-
- com.aoapps.collections.UnionMethodSet.ReflectionMethod<E>
-
- com.aoapps.collections.UnionMethodSet.SetMethod<E>
-
- All Implemented Interfaces:
UnionMethodSet.Method<E>
- Enclosing class:
- UnionMethodSet<E>
public static class UnionMethodSet.SetMethod<E> extends UnionMethodSet.ReflectionMethod<E>
A set of values will be obtained from the call to the method.
-
-
Field Summary
-
Fields inherited from class com.aoapps.collections.UnionMethodSet.ReflectionMethod
method
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancontains(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 ornullif set is not applicable.EgetSingleton(Object target)Gets the single value that represents the set ornullif cannot be represented as a single value.-
Methods inherited from class com.aoapps.collections.UnionMethodSet.ReflectionMethod
getMethod
-
-
-
-
Constructor Detail
-
SetMethod
public SetMethod(Class<?> targetClass, String methodName) throws NoSuchMethodException
- Throws:
NoSuchMethodException
-
SetMethod
public SetMethod(Method method)
-
-
Method Detail
-
contains
public boolean contains(Object target, Object element)
Description copied from interface:UnionMethodSet.MethodChecks if the set returned by the method contains the non-null object element.
-
getSingleton
public E getSingleton(Object target)
Description copied from interface:UnionMethodSet.MethodGets the single value that represents the set ornullif cannot be represented as a single value.
-
getSet
public Set<? extends E> getSet(Object target)
Description copied from interface:UnionMethodSet.MethodGets the set view of the method result ornullif set is not applicable.
-
-