Interface NullableExpression<T,​INNER extends Expression<T>>

  • Type Parameters:
    T - the input entity type
    INNER - type of the inner expression
    All Superinterfaces:
    Expression<T>

    public interface NullableExpression<T,​INNER extends Expression<T>>
    extends Expression<T>
    Specific type of Expression that has an inner expression that is used for elements that does not pass the isNull predicate.

    Equality is determined by looking at the inner() and isNullPredicate().

    Since:
    3.1.0
    Author:
    Emil Forslund
    • Method Detail

      • inner

        INNER inner()
        The inner predicate that is used to determine the result after the isNullPredicate() has returned false. The inner expression should have the same type as this one, except that it might not be nullable. It could also be nullable, however.
        Returns:
        the inner expression
      • isNullPredicate

        Predicate<T> isNullPredicate()
        Returns the predicate used to evaluate if an incoming element will be mapped to null in this expression, or if the inner() expression should be used.
        Returns:
        predicate that gives true if an element should result in a null value in this expression, or false if the inner() expression should be used to determine the result