Class MaxResolver<T>
- java.lang.Object
-
- org.cyclos.impl.users.productresolvers.FromListResolver<T,T>
-
- org.cyclos.impl.users.productresolvers.MaxResolver<T>
-
- All Implemented Interfaces:
ProductsResolver<T,Void>
- Direct Known Subclasses:
NullOrMaxResolver
public class MaxResolver<T> extends FromListResolver<T,T>
Resolves the maximum value IMPORTANT: When using this resolver for enum properties the enum must be ordered from least to greatest to be consistent when resolving to null because the product accessor implementation assumes it.
In case the enum implementsHasDefaultthen the value marked as the default will be returned when resolving to null.
-
-
Constructor Summary
Constructors Constructor Description MaxResolver()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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
allowNulls, 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
-
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- Specified by:
toResultin classFromListResolver<T,T>
-
-