Package org.apache.calcite.runtime
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>
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 implementPredicate
directly.Abstract implementation ofPredicate
.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.Overridesjava.util.function.Predicate#test
in JDK8 and higher.
-