Interface ToStringOrElse<T>
-
- Type Parameters:
T- the input entity type
- All Superinterfaces:
Comparator<T>,Expression<T>,Function<T,String>,HasCase<T,ToString<T>>,HasCompare<T>,HasCompose<T>,HasHash<T>,HasMap<T,UnaryOperator<String>,ToString<T>>,NonNullableExpression<T,ToStringNullable<T>>,ToString<T>
public interface ToStringOrElse<T> extends NonNullableExpression<T,ToStringNullable<T>>, ToString<T>
SpecializedNonNullableExpressionforStringvalues 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 StringdefaultValue()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.ToString
apply, compare, compose, expressionType, hash, map, toLowerCase, toUpperCase
-
-
-
-
Method Detail
-
defaultValue
String 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,ToStringNullable<T>>- Returns:
- the null-strategy used
-
-