T - type to extract from@FunctionalInterface public interface ToBigDecimalNullable<T> extends Expression<T>, ToNullable<T,BigDecimal,ToBigDecimal<T>>, HasHash<T>, HasCompare<T>, HasCompose<T>
BigDecimal value.
This expression can be implemented using a lambda, or it can be a result of
another operation. It has additional methods for operating on it.Function| Modifier and Type | Method and Description |
|---|---|
BigDecimal |
apply(T object) |
default int |
compare(T first,
T second) |
default <V> ToBigDecimalNullable<V> |
compose(Function<? super V,? extends T> before)
Returns a composed expression that first applies the
before
function to its input, and then applies this function to the result. |
default ExpressionType |
expressionType()
Returns the expression type of this expression.
|
default long |
hash(T object)
Hash the specified object into a 64-bit hash.
|
static <T> ToBigDecimalNullable<T> |
of(Function<T,BigDecimal> lambda)
Returns a typed
ToBigDecimalNullable<T> using the provided
lambda. |
default ToBigDecimal<T> |
orElse(BigDecimal value)
Returns an equivalent expression as this, except that it will return
the
value if given an argument that would cause this
expression to return null. |
default ToBigDecimal<T> |
orElseGet(ToBigDecimal<T> getter)
Returns an equivalent expression as this, except that it will return
the
getter expression if given an argument that would cause this
expression to return null. |
default ToBigDecimal<T> |
orThrow()
Returns an equivalent expression as this, except that it will throw a
NullPointerException if given an argument that would cause this
expression to return null. |
isNotNull, isNotNull, isNull, isNullcomparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLongstatic <T> ToBigDecimalNullable<T> of(Function<T,BigDecimal> lambda)
ToBigDecimalNullable<T> using the provided
lambda.T - type to extract fromlambda - to convertToBigDecimalNullable<T> using the provided
lambdaNullPointerException - if the provided lambda is
nullBigDecimal apply(T object)
apply in interface Function<T,BigDecimal>default ExpressionType expressionType()
ExpressionexpressionType in interface Expression<T>default ToBigDecimal<T> orThrow() throws NullPointerException
ToNullableNullPointerException if given an argument that would cause this
expression to return null.orThrow in interface ToNullable<T,BigDecimal,ToBigDecimal<T>>NullPointerExceptiondefault ToBigDecimal<T> orElseGet(ToBigDecimal<T> getter)
ToNullablegetter expression if given an argument that would cause this
expression to return null.orElseGet in interface ToNullable<T,BigDecimal,ToBigDecimal<T>>getter - to apply if nullgetterdefault ToBigDecimal<T> orElse(BigDecimal value)
ToNullablevalue if given an argument that would cause this
expression to return null.orElse in interface ToNullable<T,BigDecimal,ToBigDecimal<T>>value - value to use if nullvaluedefault long hash(T object)
HasHashdefault int compare(T first, T second)
compare in interface Comparator<T>compare in interface HasCompare<T>default <V> ToBigDecimalNullable<V> compose(Function<? super V,? extends T> before)
HasComposebefore
function to its input, and then applies this function to the result.
If evaluation of either function throws an exception, it is relayed to
the caller of the composed function.compose in interface Function<T,BigDecimal>compose in interface HasCompose<T>V - the type of input to the before function, and to the
composed expressionbefore - the function to apply before this function is appliedbefore
function and then applies this functionCopyright © 2019 Speedment, Inc.. All rights reserved.