Class PredicateImpl<T>

java.lang.Object
org.apache.calcite.runtime.PredicateImpl<T>
Type Parameters:
T - the type of the input to the predicate
All Implemented Interfaces:
com.google.common.base.Predicate<T>, Predicate<T>

public abstract class PredicateImpl<T> extends 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
    Deprecated.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    final boolean
    apply(@Nullable T input)
    Deprecated.
     
    abstract boolean
    test(@Nullable 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

    Methods inherited from interface java.util.function.Predicate

    and, negate, or
  • Constructor Details

    • PredicateImpl

      public PredicateImpl()
      Deprecated.
  • Method Details

    • 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.
      Specified by:
      test in interface com.google.common.base.Predicate<T>
      Specified by:
      test in interface Predicate<T>