org.eobjects.metamodel.util
Class InclusionPredicate<E>
java.lang.Object
org.eobjects.metamodel.util.InclusionPredicate<E>
- Type Parameters:
E -
- All Implemented Interfaces:
- Func<E,Boolean>, Predicate<E>
public class InclusionPredicate<E>
- extends Object
- implements Predicate<E>
A predicate that uses an inclusion list ("white list") of elements to
determine whether to evaluate true or false.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
InclusionPredicate
public InclusionPredicate(Collection<E> inclusionList)
eval
public Boolean eval(E arg)
- Description copied from interface:
Func
- Evaluates an element and transforms it using this function.
- Specified by:
eval in interface Func<E,Boolean>
- Parameters:
arg - the input given to the function
- Returns:
- the output result of the function
getInclusionList
public Collection<E> getInclusionList()
Copyright © 2007-2013. All Rights Reserved.