Interface NullPredicate<T,​R>

  • All Superinterfaces:
    Predicate<T>
    All Known Subinterfaces:
    IsNotNull<T,​R>, IsNull<T,​R>

    public interface NullPredicate<T,​R>
    extends Predicate<T>
    Specialized predicate that holds additional metadata about the condition that can be used to optimize the expression.
    Since:
    3.1.2
    Author:
    Emil Forslund
    • Method Detail

      • nullPredicateType

        NullPredicateType nullPredicateType()
        If this predicate represents a simple a == null or a != null predicate on the mapped value, then this method may choose to return a special value so that the predicate may be short-circuited. The method may always return NullPredicateType.OTHER, in which case no such optimization can be done.
        Returns:
        the type of predicate this represents
      • expression

        ToNullable<T,​R,​?> expression()
        The expression that is invoked in an incoming entity to get the value that the predicate should test.
        Returns:
        the expression