Interface NullableExpression<T,INNER extends Expression<T>>
-
- Type Parameters:
T- the input entity typeINNER- type of the inner expression
- All Superinterfaces:
Expression<T>
public interface NullableExpression<T,INNER extends Expression<T>> extends Expression<T>
Specific type ofExpressionthat has aninnerexpression that is used for elements that does not pass theisNullpredicate.Equality is determined by looking at the
inner()andisNullPredicate().- Since:
- 3.1.0
- Author:
- Emil Forslund
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description INNERinner()The inner predicate that is used to determine the result after theisNullPredicate()has returnedfalse.Predicate<T>isNullPredicate()Returns the predicate used to evaluate if an incoming element will be mapped tonullin this expression, or if theinner()expression should be used.-
Methods inherited from interface com.speedment.runtime.compute.expression.Expression
expressionType
-
-
-
-
Method Detail
-
inner
INNER inner()
The inner predicate that is used to determine the result after theisNullPredicate()has returnedfalse. The inner expression should have the sametypeas 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 tonullin this expression, or if theinner()expression should be used.- Returns:
- predicate that gives
trueif an element should result in anullvalue in this expression, orfalseif theinner()expression should be used to determine the result
-
-