| 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.compute.trait |
Traits used in the base package for functional interfaces.
|
| Modifier and Type | Method and Description |
|---|---|
default ToDoubleNullable<T> |
ToDoubleNullable.abs() |
default <V> ToDoubleNullable<V> |
ToDouble.compose(Function<? super V,? extends T> before) |
default <V> ToDoubleNullable<V> |
ToDoubleNullable.compose(Function<? super V,? extends T> before) |
default ToDoubleNullable<T> |
ToDoubleNullable.mapIfPresent(DoubleUnaryOperator operator) |
default ToDoubleNullable<T> |
ToBooleanNullable.mapToDoubleIfPresent(com.speedment.common.function.BooleanToDoubleFunction mapper) |
default ToDoubleNullable<T> |
ToByteNullable.mapToDoubleIfPresent(com.speedment.common.function.ByteToDoubleFunction mapper) |
default ToDoubleNullable<T> |
ToFloatNullable.mapToDoubleIfPresent(com.speedment.common.function.FloatToDoubleFunction mapper) |
default ToDoubleNullable<T> |
ToIntNullable.mapToDoubleIfPresent(IntToDoubleFunction mapper) |
default ToDoubleNullable<T> |
ToLongNullable.mapToDoubleIfPresent(LongToDoubleFunction mapper) |
default ToDoubleNullable<T> |
ToShortNullable.mapToDoubleIfPresent(com.speedment.common.function.ShortToDoubleFunction mapper) |
default ToDoubleNullable<T> |
ToEnumNullable.mapToDoubleIfPresent(ToDoubleFunction<E> mapper) |
default ToDoubleNullable<T> |
ToDoubleNullable.negate() |
static <T> ToDoubleNullable<T> |
ToDoubleNullable.of(Function<T,Double> lambda)
Returns a typed
ToDoubleNullable<T> using the provided
lambda. |
default ToDoubleNullable<T> |
ToLongNullable.sqrt() |
default ToDoubleNullable<T> |
ToIntNullable.sqrt() |
default ToDoubleNullable<T> |
ToByteNullable.sqrt() |
default ToDoubleNullable<T> |
ToShortNullable.sqrt() |
default ToDoubleNullable<T> |
ToFloatNullable.sqrt() |
default ToDoubleNullable<T> |
ToDoubleNullable.sqrt() |
| Modifier and Type | Method and Description |
|---|---|
static <T> ToDoubleNullable<T> |
Expressions.absOrNull(ToDoubleNullable<T> expression)
Returns an expression that takes an expression and returns its absolute
(removing the negation sign if any).
|
static <T> ToDoubleNullable<T> |
Expressions.byteToDoubleNullable(ToByteNullable<T> expression)
Creates and returns an expression that converts the result of the
specified expression into a
double by casting. |
static <T> ToDoubleNullable<T> |
Expressions.floatToDoubleNullable(ToFloatNullable<T> expression)
Creates and returns an expression that converts the result of the
specified expression into a
double by casting. |
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> ToDoubleNullable<T> |
Expressions.longToDoubleNullable(ToLongNullable<T> expression)
Creates and returns an expression that converts the result of the
specified expression into a
double by casting. |
static <T> ToDoubleNullable<T> |
Expressions.negateOrNull(ToDoubleNullable<T> expression)
Creates and returns an expression that will compute the negative result
of the specified expression.
|
static <T> ToDoubleNullable<T> |
Expressions.powOrNull(ToByteNullable<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(ToByteNullable<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(ToByteNullable<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(ToByteNullable<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> ToDoubleNullable<T> |
Expressions.powOrNull(ToDoubleNullable<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(ToDoubleNullable<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(ToDoubleNullable<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(ToDoubleNullable<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> ToDoubleNullable<T> |
Expressions.powOrNull(ToFloatNullable<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(ToFloatNullable<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(ToFloatNullable<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(ToFloatNullable<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> 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> ToDoubleNullable<T> |
Expressions.powOrNull(ToLongNullable<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(ToLongNullable<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(ToLongNullable<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(ToLongNullable<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> ToDoubleNullable<T> |
Expressions.powOrNull(ToShortNullable<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(ToShortNullable<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(ToShortNullable<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(ToShortNullable<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> ToDoubleNullable<T> |
Expressions.shortToDoubleNullable(ToShortNullable<T> expression)
Creates and returns an expression that converts the result of the
specified expression into a
double by casting. |
static <T> ToDoubleNullable<T> |
Expressions.sqrtOrNull(ToByteNullable<T> expression)
Creates and returns an expression that returns the square root of the
result from the input expression.
|
static <T> ToDoubleNullable<T> |
Expressions.sqrtOrNull(ToDoubleNullable<T> expression)
Creates and returns an expression that returns the square root of the
result from the input expression.
|
static <T> ToDoubleNullable<T> |
Expressions.sqrtOrNull(ToFloatNullable<T> expression)
Creates and returns an expression that returns the square root of the
result from the input expression.
|
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.
|
static <T> ToDoubleNullable<T> |
Expressions.sqrtOrNull(ToLongNullable<T> expression)
Creates and returns an expression that returns the square root of the
result from the input expression.
|
static <T> ToDoubleNullable<T> |
Expressions.sqrtOrNull(ToShortNullable<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 |
|---|---|
static <T> ToDoubleNullable<T> |
Expressions.absOrNull(ToDoubleNullable<T> expression)
Returns an expression that takes an expression and returns its absolute
(removing the negation sign if any).
|
static <T> ToDoubleNullable<T> |
Expressions.negateOrNull(ToDoubleNullable<T> expression)
Creates and returns an expression that will compute the negative result
of the specified expression.
|
static <T> ToDoubleNullable<T> |
Expressions.powOrNull(ToDoubleNullable<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(ToDoubleNullable<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(ToDoubleNullable<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(ToDoubleNullable<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(ToDoubleNullable<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(ToDoubleNullable<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 |
|---|---|
ToDoubleNullable<T> |
HasMapToDoubleIfPresent.mapToDoubleIfPresent(MAPPER mapper)
Maps the result of this expression into a
double by passing it to
the specified mapper, producing a new expression that implements
ToDouble. |
Copyright © 2019 Speedment, Inc.. All rights reserved.