Class FromListResolver<T,E>
- java.lang.Object
-
- org.cyclos.impl.users.productresolvers.FromListResolver<T,E>
-
- All Implemented Interfaces:
ProductsResolver<T,Void>
- Direct Known Subclasses:
ListResolver,MaxResolver,MinResolver
public abstract class FromListResolver<T,E> extends Object implements ProductsResolver<T,Void>
Base class for product property resolvers. Subclasses resolve their values from an ordered list of values.
-
-
Constructor Summary
Constructors Constructor Description FromListResolver()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected booleanallowNulls()protected Collection<E>newCollection()Tresolve(Collection<Product> products, String name, Void arg)Resolves the value from the collection of productsprotected abstract TtoResult(List<E> values)Must be implemented to actually transform the given list of all values to the expected result-
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
-
resolve
public final T resolve(Collection<Product> products, String name, Void arg)
Description copied from interface:ProductsResolverResolves the value from the collection of products- Specified by:
resolvein interfaceProductsResolver<T,E>
-
allowNulls
protected boolean allowNulls()
-
newCollection
protected Collection<E> newCollection()
-
-