org.eobjects.metamodel.util
Class InclusionPredicate<E>

java.lang.Object
  extended by 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.


Constructor Summary
InclusionPredicate(Collection<E> inclusionList)
           
 
Method Summary
 Boolean eval(E arg)
          Evaluates an element and transforms it using this function.
 Collection<E> getInclusionList()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InclusionPredicate

public InclusionPredicate(Collection<E> inclusionList)
Method Detail

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.