Interface ToBooleanOrElse<T>
-
- Type Parameters:
T- the input entity type
- All Superinterfaces:
Comparator<T>,Expression<T>,HasAsDouble<T>,HasAsInt<T>,HasAsLong<T>,HasCompare<T>,HasCompose<T>,HasHash<T>,HasMap<T,BooleanUnaryOperator,ToBoolean<T>>,HasMapToDouble<T,BooleanToDoubleFunction>,NonNullableExpression<T,ToBooleanNullable<T>>,Predicate<T>,ToBoolean<T>,ToBooleanFunction<T>
public interface ToBooleanOrElse<T> extends NonNullableExpression<T,ToBooleanNullable<T>>, ToBoolean<T>
SpecializedNonNullableExpressionforbooleanvalues where a default value is given if the original expression returnsnull.- Since:
- 3.1.0
- Author:
- Emil Forslund
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.speedment.runtime.compute.expression.NonNullableExpression
NonNullableExpression.NullStrategy
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description booleandefaultValue()Returns the default value used whenNonNullableExpression.innerNullable()would have returnednull.default NonNullableExpression.NullStrategynullStrategy()Returns the strategy used by this expression to deal with the case whenNonNullableExpression.innerNullable()would have returnednull.-
Methods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Methods inherited from interface com.speedment.runtime.compute.expression.NonNullableExpression
innerNullable
-
Methods inherited from interface com.speedment.runtime.compute.ToBoolean
applyAsBoolean, asDouble, asInt, asLong, compare, compose, composeNullable, expressionType, hash, map, mapToDouble
-
Methods inherited from interface com.speedment.common.function.ToBooleanFunction
test
-
-
-
-
Method Detail
-
defaultValue
boolean defaultValue()
Returns the default value used whenNonNullableExpression.innerNullable()would have returnednull.- Returns:
- the default value
-
nullStrategy
default NonNullableExpression.NullStrategy nullStrategy()
Description copied from interface:NonNullableExpressionReturns the strategy used by this expression to deal with the case whenNonNullableExpression.innerNullable()would have returnednull.- Specified by:
nullStrategyin interfaceNonNullableExpression<T,ToBooleanNullable<T>>- Returns:
- the null-strategy used
-
-