Module com.aoapps.collections
Package com.aoapps.collections
Class UnionMethodSet.SingletonMethod<E>
java.lang.Object
com.aoapps.collections.UnionMethodSet.ReflectionMethod<E>
com.aoapps.collections.UnionMethodSet.SingletonMethod<E>
- All Implemented Interfaces:
UnionMethodSet.Method<E>
- Enclosing class:
UnionMethodSet<E>
A single value will be obtained from the call to the method.
-
Field Summary
Fields inherited from class com.aoapps.collections.UnionMethodSet.ReflectionMethod
method -
Constructor Summary
ConstructorsConstructorDescriptionSingletonMethod(Class<?> targetClass, String methodName) SingletonMethod(Method method) -
Method Summary
Modifier and TypeMethodDescriptionbooleanChecks if the set returned by the method contains the non-null object element.Gets the set view of the method result ornullif set is not applicable.getSingleton(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 Details
-
SingletonMethod
- Throws:
NoSuchMethodException
-
SingletonMethod
-
-
Method Details
-
contains
Description copied from interface:UnionMethodSet.MethodChecks if the set returned by the method contains the non-null object element. -
getSingleton
Description copied from interface:UnionMethodSet.MethodGets the single value that represents the set ornullif cannot be represented as a single value. -
getSet
Description copied from interface:UnionMethodSet.MethodGets the set view of the method result ornullif set is not applicable.
-
