Class Predicate<T>


  • public abstract class Predicate<T>
    extends Object
    Interface for defining an arbitrary predicate on Objects.
    • Constructor Detail

      • Predicate

        public Predicate()
    • Method Detail

      • truePred

        public static <T> Predicate<T> truePred()
      • falsePred

        public static <T> Predicate<T> falsePred()
      • test

        public abstract boolean test​(T obj_)
        Test whether an Object satisfies this Predicate
      • not

        public Predicate<T> not()
        Return a predicate that is a negation of this predicate
      • and

        public Predicate<T> and​(Predicate<T> conjunct_)
        Return a predicate that is a conjunction of this predicate and another predicate
      • or

        public Predicate<T> or​(Predicate<T> disjunct_)
        Return a predicate that is a conjunction of this predicate and another predicate