T - type to extract from@FunctionalInterface public interface ToCharNullable<T> extends Expression<T>, com.speedment.common.function.ToCharFunction<T>, ToNullable<T,Character,ToChar<T>>, HasHash<T>, HasCompare<T>, HasCompose<T>
char value, or
null. 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 |
|---|---|
default char |
applyAsChar(T object)
Applies this function to the given argument.
|
default int |
compare(T first,
T second) |
default <V> ToCharNullable<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> ToCharNullable<T> |
of(Function<T,Character> lambda)
Returns a typed
ToCharNullable<T> using the provided
lambda. |
default ToChar<T> |
orElse(Character 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 ToChar<T> |
orElseGet(ToChar<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 ToChar<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> ToCharNullable<T> of(Function<T,Character> lambda)
ToCharNullable<T> using the provided
lambda.T - type to extract fromlambda - to convertToCharNullable<T> using the provided
lambdaNullPointerException - if the provided lambda is
nulldefault ExpressionType expressionType()
ExpressionexpressionType in interface Expression<T>default char applyAsChar(T object) throws NullPointerException
com.speedment.common.function.ToCharFunctionapplyAsChar in interface com.speedment.common.function.ToCharFunction<T>object - the argumentNullPointerExceptiondefault ToChar<T> orThrow() throws NullPointerException
ToNullableNullPointerException if given an argument that would cause this
expression to return null.orThrow in interface ToNullable<T,Character,ToChar<T>>NullPointerExceptiondefault ToChar<T> orElseGet(ToChar<T> getter)
ToNullablegetter expression if given an argument that would cause this
expression to return null.default ToChar<T> orElse(Character value)
ToNullablevalue if given an argument that would cause this
expression to return null.default long hash(T object)
HasHashdefault int compare(T first, T second)
compare in interface Comparator<T>compare in interface HasCompare<T>default <V> ToCharNullable<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,Character>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.