Interface ToDoubleOrElse<T>
-
- Type Parameters:
T- the input entity type
- All Superinterfaces:
Comparator<T>,Expression<T>,HasAbs<ToDouble<T>>,HasAsDouble<T>,HasAsInt<T>,HasAsLong<T>,HasCompare<T>,HasCompose<T>,HasDivide<T>,HasHash<T>,HasMap<T,DoubleUnaryOperator,ToDouble<T>>,HasMinus<T>,HasMultiply<T>,HasNegate<ToDouble<T>>,HasPlus<T>,HasPow<T>,HasSign<ToByte<T>>,HasSqrt<ToDouble<T>>,NonNullableExpression<T,ToDoubleNullable<T>>,ToDouble<T>,ToDoubleFunction<T>
public interface ToDoubleOrElse<T> extends NonNullableExpression<T,ToDoubleNullable<T>>, ToDouble<T>
SpecializedNonNullableExpressionfordoublevalues 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 doubledefaultValue()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.ToDouble
abs, applyAsDouble, asDouble, asInt, asLong, compare, compose, divide, divide, divide, divide, divide, divide, expressionType, hash, map, minus, minus, minus, minus, minus, minus, minus, minus, multiply, multiply, multiply, multiply, multiply, multiply, multiply, multiply, negate, plus, plus, plus, plus, plus, plus, plus, plus, pow, pow, pow, pow, sign, sqrt
-
-
-
-
Method Detail
-
defaultValue
double 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,ToDoubleNullable<T>>- Returns:
- the null-strategy used
-
-