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
  • Constructor Details

    • Contains

      public Contains(Set<T> set)
  • Method Details

    • 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 interface org.apache.commons.collections15.Predicate<T>
      Parameters:
      obj -
      Returns:
      true if the specified object is in the set given in the constructor, otherwise false.