Class Predicate<T>

    • 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 t)
        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
      • isElementOf

        public static <T> Predicate<T> isElementOf​(Collection<T> c)
        Create the predicate "is an element of c"