T
- type to extract from@FunctionalInterface public interface ToChar<T> extends Expression<T>, com.speedment.common.function.ToCharFunction<T>, HasAsDouble<T>, HasAsInt<T>, HasAsLong<T>, HasMap<T,com.speedment.common.function.CharUnaryOperator,ToChar<T>>, HasCase<T,ToChar<T>>, HasHash<T>, HasCompare<T>, HasCompose<T>
char
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.ToCharFunction
Modifier and Type | Method and Description |
---|---|
default ToDouble<T> |
asDouble()
Returns an expression that casts the result of the current expression
into a
double . |
default ToInt<T> |
asInt()
Returns an expression that casts the result of the current expression
into an
int . |
default ToLong<T> |
asLong()
Returns an expression that casts the result of the current expression
into a
long . |
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.
|
default ToChar<T> |
map(com.speedment.common.function.CharUnaryOperator operator)
Returns an expression for the value of this expression mapped using the
specified mapping function.
|
static <T> ToChar<T> |
of(com.speedment.common.function.ToCharFunction<T> lambda)
Returns a typed
ToChar<T> using the provided lambda . |
default ToChar<T> |
toLowerCase()
Returns an expression that is equivalent to this expression, except that
results are always in lower-case letters.
|
default ToChar<T> |
toUpperCase()
Returns an expression that is equivalent to this expression, except that
results are always in upper-case letters.
|
comparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
static <T> ToChar<T> of(com.speedment.common.function.ToCharFunction<T> lambda)
ToChar<T>
using the provided lambda
.T
- type to extract fromlambda
- to convertToChar<T>
using the provided lambda
NullPointerException
- if the provided lambda
is
null
default ExpressionType expressionType()
Expression
expressionType
in interface Expression<T>
default ToDouble<T> asDouble()
HasAsDouble
double
.asDouble
in interface HasAsDouble<T>
default ToInt<T> asInt()
HasAsInt
int
.default ToLong<T> asLong()
HasAsLong
long
.default ToChar<T> map(com.speedment.common.function.CharUnaryOperator operator)
HasMap
default ToChar<T> toUpperCase()
HasCase
toUpperCase
in interface HasCase<T,ToChar<T>>
default ToChar<T> toLowerCase()
HasCase
toLowerCase
in interface HasCase<T,ToChar<T>>
default long hash(T object)
HasHash
default 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)
HasCompose
before
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 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 © 2018 Speedment, Inc.. All rights reserved.