Class NullOrMaxResolver<T>
- java.lang.Object
-
- org.cyclos.impl.users.productresolvers.FromListResolver<T,T>
-
- org.cyclos.impl.users.productresolvers.MaxResolver<T>
-
- org.cyclos.impl.users.productresolvers.NullOrMaxResolver<T>
-
- All Implemented Interfaces:
ProductsResolver<T,Void>
public class NullOrMaxResolver<T> extends MaxResolver<T>
Resolves the maximum value, or null if the values contains a null value
-
-
Constructor Summary
Constructors Constructor Description NullOrMaxResolver()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleanallowNulls()protected TtoResult(List<T> values)Must be implemented to actually transform the given list of all values to the expected result-
Methods inherited from class org.cyclos.impl.users.productresolvers.FromListResolver
newCollection, resolve
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.cyclos.impl.users.productresolvers.ProductsResolver
cacheResult
-
-
-
-
Method Detail
-
allowNulls
protected boolean allowNulls()
- Overrides:
allowNullsin classFromListResolver<T,T>
-
toResult
protected T toResult(List<T> values)
Description copied from class:FromListResolverMust be implemented to actually transform the given list of all values to the expected result- Overrides:
toResultin classMaxResolver<T>
-
-