Interface ToEnumOrElse<T,E extends Enum<E>>
-
- Type Parameters:
T- the input entity typeE- the enum type
- All Superinterfaces:
Comparator<T>,Expression<T>,Function<T,E>,HasCompare<T>,HasCompose<T>,HasHash<T>,HasMap<T,UnaryOperator<E>,ToEnum<T,E>>,NonNullableExpression<T,ToEnumNullable<T,E>>,ToEnum<T,E>
public interface ToEnumOrElse<T,E extends Enum<E>> extends NonNullableExpression<T,ToEnumNullable<T,E>>, ToEnum<T,E>
SpecializedNonNullableExpressionforEnumvalues 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 EdefaultValue()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
-
-
-
-
Method Detail
-
defaultValue
E 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,E extends Enum<E>>- Returns:
- the null-strategy used
-
-