Class MinResolver<T>
- java.lang.Object
-
- org.cyclos.impl.users.productresolvers.FromListResolver<T,T>
-
- org.cyclos.impl.users.productresolvers.MinResolver<T>
-
- All Implemented Interfaces:
ProductsResolver<T,Void>
public class MinResolver<T> extends FromListResolver<T,T>
Resolves the minimum value IMPORTANT: When using this resolver for enum properties the enum must be ordered from greatest to least to be consistent when resolving to null if because the product accessor implementation assumes that.
In case the enum implementsHasDefaultthen the value marked as the default will be returned when resolving to null.
-
-
Constructor Summary
Constructors Constructor Description MinResolver()
-
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>
-
-