Class 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 Detail

      • Contains

        public Contains​(Set<T> set)
    • 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 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.