Package | Description |
---|---|
com.speedment.runtime.compute |
The Runtime Compute module adds a large number of functional interfaces to
the Speedment system that allows computations to be performed on entities in
a Stream without loosing metadata required by Speedment to optimize the
stream.
|
com.speedment.runtime.compute.expression |
Expression builders that can produce efficient and type-safe implementations
of the interfaces in the
com.speedment.enterprise.aggregator.function
package. |
com.speedment.runtime.field |
Fields expose handlers for accessing columns in generated classes and are
located in this package.
|
com.speedment.runtime.field.expression |
Modifier and Type | Method and Description |
---|---|
default ToIntNullable<T> |
ToIntNullable.abs() |
default ToIntNullable<T> |
ToEnumNullable.asOrdinal()
Returns an alternative expression that represents the
Enum.ordinal() of the enum that would otherwise have been
returned by this expression. |
default <V> ToIntNullable<V> |
ToIntNullable.compose(Function<? super V,? extends T> before) |
default <V> ToIntNullable<V> |
ToInt.compose(Function<? super V,? extends T> before) |
default ToIntNullable<T> |
ToIntNullable.mapIfPresent(IntUnaryOperator mapper) |
default ToIntNullable<T> |
ToIntNullable.negate() |
static <T> ToIntNullable<T> |
ToIntNullable.of(Function<T,Integer> lambda)
Returns a typed
ToIntNullable<T> using the provided
lambda . |
Modifier and Type | Method and Description |
---|---|
static <T> ToIntNullable<T> |
Expressions.absOrNull(ToIntNullable<T> expression)
Returns an expression that takes an expression and returns its absolute
(removing the negation sign if any).
|
static <T> ToIntNullable<T> |
Expressions.negateOrNull(ToIntNullable<T> expression)
Creates and returns an expression that will compute the negative result
of the specified expression.
|
Modifier and Type | Method and Description |
---|---|
static <T> ToIntNullable<T> |
Expressions.absOrNull(ToIntNullable<T> expression)
Returns an expression that takes an expression and returns its absolute
(removing the negation sign if any).
|
static <T> ToDoubleNullable<T> |
Expressions.intToDoubleNullable(ToIntNullable<T> expression)
Creates and returns an expression that converts the result of the
specified expression into a
double by casting. |
static <T> ToIntNullable<T> |
Expressions.negateOrNull(ToIntNullable<T> expression)
Creates and returns an expression that will compute the negative result
of the specified expression.
|
static <T> ToDoubleNullable<T> |
Expressions.powOrNull(ToIntNullable<T> expression,
double power)
Creates and returns an expression that takes the result of an input
expression and multiplies it with itself
power times. |
static <T> ToDoubleNullable<T> |
Expressions.powOrNull(ToIntNullable<T> expression,
int power)
Creates and returns an expression that takes the result of an input
expression and multiplies it with itself
power times. |
static <T> ToDoubleNullable<T> |
Expressions.powOrNull(ToIntNullable<T> expression,
ToDouble<T> power)
Creates and returns an expression that takes the result of an input
expression and multiplies it with itself as many times as the result of
applying
power to the input. |
static <T> ToDoubleNullable<T> |
Expressions.powOrNull(ToIntNullable<T> expression,
ToInt<T> power)
Creates and returns an expression that takes the result of an input
expression and multiplies it with itself as many times as the result of
applying
power to the input. |
static <T> ToByteNullable<T> |
Expressions.signOrNull(ToIntNullable<T> expression)
Creates and returns an expression that returns
1 if the result of
the input expression is positive, -1 if the result of the input
expression is negative and 0 if the result of the input
expression is 0 . |
static <T> ToDoubleNullable<T> |
Expressions.sqrtOrNull(ToIntNullable<T> expression)
Creates and returns an expression that returns the square root of the
result from the input expression.
|
Modifier and Type | Method and Description |
---|---|
default ToIntNullable<ENTITY> |
ReferenceField.asInt()
Returns an
ToIntNullable expression that has the value of this
field, casted to a int by first casting it to Number and
then invoking Number.intValue() . |
default ToIntNullable<ENTITY> |
ReferenceField.mapToIntIfPresent(ToIntFunction<V> mapper)
Returns an
ToIntNullable expression that has the value returned
by the specified mapper function if the value for this field is not
null , and otherwise null . |
Modifier and Type | Interface and Description |
---|---|
interface |
FieldToInt<ENTITY,T>
Specific
FieldMapper implementation that also implements
ToIntNullable . |
Copyright © 2019 Speedment, Inc.. All rights reserved.