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
ConstructorDescriptionSingletonMethod
(Class<?> targetClass, String methodName) SingletonMethod
(Method method) -
Method Summary
Modifier and TypeMethodDescriptionboolean
Checks if the set returned by the method contains the non-null object element.Gets the set view of the method result ornull
if set is not applicable.getSingleton
(Object target) Gets the single value that represents the set ornull
if 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.Method
Checks if the set returned by the method contains the non-null object element. -
getSingleton
Description copied from interface:UnionMethodSet.Method
Gets the single value that represents the set ornull
if cannot be represented as a single value. -
getSet
Description copied from interface:UnionMethodSet.Method
Gets the set view of the method result ornull
if set is not applicable.
-