Class ContainsPredicate<T>

  • Type Parameters:
    T - Type of the free variable for the predicate and type of the collection elements.
    All Implemented Interfaces:
    Serializable, IgnitePredicate<T>

    public class ContainsPredicate<T>
    extends Object
    implements IgnitePredicate<T>
    Predicate which returns true if it receives an element that is contained in the passed in collection.
    See Also:
    Serialized Form
    • Constructor Detail

      • ContainsPredicate

        public ContainsPredicate​(Collection<? extends T> c)
        Parameters:
        c - Collection to check for containment.
    • Method Detail

      • apply

        public boolean apply​(T t)
        Predicate body.
        Specified by:
        apply in interface IgnitePredicate<T>
        Parameters:
        t - Predicate parameter.
        Returns:
        Return value.