Package repast.simphony.util.collections
Class Contains<T>
- java.lang.Object
-
- repast.simphony.util.collections.Contains<T>
-
- All Implemented Interfaces:
org.apache.commons.collections15.Predicate<T>
public class Contains<T> extends Object implements org.apache.commons.collections15.Predicate<T>
Predicate that returns true if the specified object is contained by a Set.- Version:
- $Revision$ $Date$
- Author:
- Nick Collier
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
evaluate(T obj)
Evaluates to true if the specified object is in the set given in the constructor.
-
-
-
Method Detail
-
evaluate
public boolean evaluate(T obj)
Evaluates to true if the specified object is in the set given in the constructor.- Specified by:
evaluate
in interfaceorg.apache.commons.collections15.Predicate<T>
- Parameters:
obj
-- Returns:
- true if the specified object is in the set given in the constructor, otherwise false.
-
-