Class PredicateImpl<T>

  • Type Parameters:
    T - the type of the input to the predicate
    All Implemented Interfaces:
    com.google.common.base.Predicate<T>

    public abstract class PredicateImpl<T>
    extends java.lang.Object
    implements com.google.common.base.Predicate<T>
    Deprecated.
    Now Calcite is Java 8 and higher, we recommend that you implement Predicate directly.
    Abstract implementation of Predicate.

    Derived class needs to implement the test(T) method.

    Helps with the transition to java.util.function.Predicate, which was introduced in JDK 1.8, and is required in Guava 21.0 and higher, but still works on JDK 1.7.

    • Constructor Summary

      Constructors 
      Constructor Description
      PredicateImpl()
      Deprecated.
       
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      boolean apply​(T input)
      Deprecated.
       
      abstract boolean test​(T t)
      Deprecated.
      Overrides java.util.function.Predicate#test in JDK8 and higher.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface com.google.common.base.Predicate

        equals
    • Constructor Detail

      • PredicateImpl

        public PredicateImpl()
        Deprecated.
    • Method Detail

      • apply

        public final boolean apply​(@Nullable
                                   T input)
        Deprecated.
        Specified by:
        apply in interface com.google.common.base.Predicate<T>
      • test

        public abstract boolean test​(@Nullable
                                     T t)
        Deprecated.
        Overrides java.util.function.Predicate#test in JDK8 and higher.