| 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.expression.orelse | |
| com.speedment.runtime.compute.trait |
Traits used in the base package for functional interfaces.
|
| Modifier and Type | Method and Description |
|---|---|
default ToInt<T> |
ToInt.abs() |
default ToInt<T> |
ToByte.asInt() |
default ToInt<T> |
ToBoolean.asInt() |
default ToInt<T> |
ToFloat.asInt() |
default ToInt<T> |
ToLong.asInt() |
default ToInt<T> |
ToShort.asInt() |
default ToInt<T> |
ToInt.asInt() |
default ToInt<T> |
ToDouble.asInt() |
default ToInt<T> |
ToBigDecimal.asInt() |
default ToInt<T> |
ToChar.asInt() |
default ToInt<T> |
ToEnum.asOrdinal()
Returns an alternative expression that represents the
Enum.ordinal() of the enum that would otherwise have been
returned by this expression. |
default ToInt<T> |
ToInt.map(IntUnaryOperator operator) |
default ToInt<T> |
ToShort.minus(byte other) |
default ToInt<T> |
ToInt.minus(byte other) |
default ToInt<T> |
ToByte.minus(int other) |
default ToInt<T> |
ToShort.minus(int other) |
default ToInt<T> |
ToInt.minus(int other) |
default ToInt<T> |
ToShort.minus(ToByte<T> other) |
default ToInt<T> |
ToInt.minus(ToByte<T> other) |
default ToInt<T> |
ToByte.minus(ToInt<T> other) |
default ToInt<T> |
ToShort.minus(ToInt<T> other) |
default ToInt<T> |
ToInt.minus(ToInt<T> other) |
default ToInt<T> |
ToByte.multiply(byte other) |
default ToInt<T> |
ToShort.multiply(byte other) |
default ToInt<T> |
ToInt.multiply(byte other) |
default ToInt<T> |
ToByte.multiply(int other) |
default ToInt<T> |
ToShort.multiply(int other) |
default ToInt<T> |
ToInt.multiply(int other) |
default ToInt<T> |
ToByte.multiply(ToByte<T> other) |
default ToInt<T> |
ToShort.multiply(ToByte<T> other) |
default ToInt<T> |
ToInt.multiply(ToByte<T> other) |
default ToInt<T> |
ToByte.multiply(ToInt<T> other) |
default ToInt<T> |
ToShort.multiply(ToInt<T> other) |
default ToInt<T> |
ToInt.multiply(ToInt<T> other) |
default ToInt<T> |
ToInt.negate() |
static <T> ToInt<T> |
ToInt.of(ToIntFunction<T> lambda)
Returns a typed
ToInt<T> using the provided lambda. |
default ToInt<T> |
ToIntNullable.orElse(Integer value) |
default ToInt<T> |
ToIntNullable.orElseGet(ToInt<T> getter) |
default ToInt<T> |
ToIntNullable.orThrow() |
default ToInt<T> |
ToShort.plus(byte other) |
default ToInt<T> |
ToInt.plus(byte other) |
default ToInt<T> |
ToByte.plus(int other) |
default ToInt<T> |
ToShort.plus(int other) |
default ToInt<T> |
ToInt.plus(int other) |
default ToInt<T> |
ToShort.plus(ToByte<T> other) |
default ToInt<T> |
ToInt.plus(ToByte<T> other) |
default ToInt<T> |
ToByte.plus(ToInt<T> other) |
default ToInt<T> |
ToShort.plus(ToInt<T> other) |
default ToInt<T> |
ToInt.plus(ToInt<T> other) |
| Modifier and Type | Method and Description |
|---|---|
default ToDouble<T> |
ToByte.divide(ToInt<T> divisor) |
default ToDouble<T> |
ToFloat.divide(ToInt<T> divisor) |
default ToDouble<T> |
ToLong.divide(ToInt<T> divisor) |
default ToDouble<T> |
ToShort.divide(ToInt<T> divisor) |
default ToDouble<T> |
ToInt.divide(ToInt<T> divisor) |
default ToDouble<T> |
ToDouble.divide(ToInt<T> divisor) |
default ToDouble<T> |
ToBigDecimal.divide(ToInt<T> divisor) |
default ToInt<T> |
ToByte.minus(ToInt<T> other) |
default ToFloat<T> |
ToFloat.minus(ToInt<T> other) |
default ToLong<T> |
ToLong.minus(ToInt<T> other) |
default ToInt<T> |
ToShort.minus(ToInt<T> other) |
default ToInt<T> |
ToInt.minus(ToInt<T> other) |
default ToDouble<T> |
ToDouble.minus(ToInt<T> other) |
default ToDouble<T> |
ToBigDecimal.minus(ToInt<T> other) |
default ToInt<T> |
ToByte.multiply(ToInt<T> other) |
default ToFloat<T> |
ToFloat.multiply(ToInt<T> other) |
default ToLong<T> |
ToLong.multiply(ToInt<T> other) |
default ToInt<T> |
ToShort.multiply(ToInt<T> other) |
default ToInt<T> |
ToInt.multiply(ToInt<T> other) |
default ToDouble<T> |
ToDouble.multiply(ToInt<T> other) |
default ToDouble<T> |
ToBigDecimal.multiply(ToInt<T> other) |
default ToInt<T> |
ToIntNullable.orElseGet(ToInt<T> getter) |
default ToInt<T> |
ToByte.plus(ToInt<T> other) |
default ToFloat<T> |
ToFloat.plus(ToInt<T> other) |
default ToLong<T> |
ToLong.plus(ToInt<T> other) |
default ToInt<T> |
ToShort.plus(ToInt<T> other) |
default ToInt<T> |
ToInt.plus(ToInt<T> other) |
default ToDouble<T> |
ToDouble.plus(ToInt<T> other) |
default ToDouble<T> |
ToBigDecimal.plus(ToInt<T> other) |
default ToDouble<T> |
ToByte.pow(ToInt<T> power) |
default ToDouble<T> |
ToFloat.pow(ToInt<T> power) |
default ToDouble<T> |
ToLong.pow(ToInt<T> power) |
default ToDouble<T> |
ToShort.pow(ToInt<T> power) |
default ToDouble<T> |
ToInt.pow(ToInt<T> power) |
default ToDouble<T> |
ToDouble.pow(ToInt<T> power) |
default ToDouble<T> |
ToBigDecimal.pow(ToInt<T> power) |
| Modifier and Type | Method and Description |
|---|---|
static <T> ToInt<T> |
Expressions.abs(ToInt<T> expression)
Returns an expression that takes an expression and returns its absolute
(removing the negation sign if any).
|
static <T> ToInt<T> |
Expressions.minus(ToByte<T> first,
int second)
Creates and returns an expression that takes the result of the expression
and subtracts a constant from it.
|
static <T> ToInt<T> |
Expressions.minus(ToInt<T> first,
byte second)
Creates and returns an expression that takes the result of the expression
and subtracts a constant from it.
|
static <T> ToInt<T> |
Expressions.minus(ToInt<T> first,
int second)
Creates and returns an expression that takes the result of the expression
and subtracts a constant from it.
|
static <T> ToInt<T> |
Expressions.minus(ToInt<T> first,
ToByte<T> second)
Creates and returns an expression that takes the result of the two
expressions and computes the difference.
|
static <T> ToInt<T> |
Expressions.minus(ToInt<T> first,
ToInt<T> second)
Creates and returns an expression that takes the result of the two
expressions and computes the difference.
|
static <T> ToInt<T> |
Expressions.minus(ToShort<T> first,
byte second)
Creates and returns an expression that takes the result of the expression
and subtracts a constant from it.
|
static <T> ToInt<T> |
Expressions.minus(ToShort<T> first,
int second)
Creates and returns an expression that takes the result of the expression
and subtracts a constant from it.
|
static <T> ToInt<T> |
Expressions.multiply(ToByte<T> first,
byte second)
Creates and returns an expression that takes the result of the expression
and multiplies a constant to it.
|
static <T> ToInt<T> |
Expressions.multiply(ToByte<T> first,
int second)
Creates and returns an expression that takes the result of the expression
and multiplies a constant to it.
|
static <T> ToInt<T> |
Expressions.multiply(ToByte<T> first,
ToByte<T> second)
Creates and returns an expression that takes the result of the two
expressions and computes the product.
|
static <T> ToInt<T> |
Expressions.multiply(ToInt<T> first,
byte second)
Creates and returns an expression that takes the result of the expression
and multiplies a constant to it.
|
static <T> ToInt<T> |
Expressions.multiply(ToInt<T> first,
int second)
Creates and returns an expression that takes the result of the expression
and multiplies a constant to it.
|
static <T> ToInt<T> |
Expressions.multiply(ToInt<T> first,
ToByte<T> second)
Creates and returns an expression that takes the result of the two
expressions and computes the product.
|
static <T> ToInt<T> |
Expressions.multiply(ToInt<T> first,
ToInt<T> second)
Creates and returns an expression that takes the result of the two
expressions and computes the product.
|
static <T> ToInt<T> |
Expressions.multiply(ToShort<T> first,
byte second)
Creates and returns an expression that takes the result of the expression
and multiplies a constant to it.
|
static <T> ToInt<T> |
Expressions.multiply(ToShort<T> first,
int second)
Creates and returns an expression that takes the result of the expression
and multiplies a constant to it.
|
static <T> ToInt<T> |
Expressions.multiply(ToShort<T> first,
ToShort<T> second)
Creates and returns an expression that takes the result of the two
expressions and computes the product.
|
static <T> ToInt<T> |
Expressions.negate(ToInt<T> expression)
Creates and returns an expression that will compute the negative result
of the specified expression.
|
static <T> ToInt<T> |
Expressions.plus(ToByte<T> first,
int second)
Creates and returns an expression that takes the result of the expression
and adds a constant to it.
|
static <T> ToInt<T> |
Expressions.plus(ToInt<T> first,
byte second)
Creates and returns an expression that takes the result of the expression
and adds a constant to it.
|
static <T> ToInt<T> |
Expressions.plus(ToInt<T> first,
int second)
Creates and returns an expression that takes the result of the expression
and adds a constant to it.
|
static <T> ToInt<T> |
Expressions.plus(ToInt<T> first,
ToByte<T> second)
Creates and returns an expression that takes the result of the two
expressions and add them together.
|
static <T> ToInt<T> |
Expressions.plus(ToInt<T> first,
ToInt<T> second)
Creates and returns an expression that takes the result of the two
expressions and add them together.
|
static <T> ToInt<T> |
Expressions.plus(ToShort<T> first,
byte second)
Creates and returns an expression that takes the result of the expression
and adds a constant to it.
|
static <T> ToInt<T> |
Expressions.plus(ToShort<T> first,
int second)
Creates and returns an expression that takes the result of the expression
and adds a constant to it.
|
| Modifier and Type | Method and Description |
|---|---|
static <T> ToInt<T> |
Expressions.abs(ToInt<T> expression)
Returns an expression that takes an expression and returns its absolute
(removing the negation sign if any).
|
static <T> ToDouble<T> |
Expressions.divide(ToByte<T> first,
ToInt<T> second)
Returns an expression that takes the result from the first expression and
divides it with the result of the second expression.
|
static <T> ToDouble<T> |
Expressions.divide(ToDouble<T> first,
ToInt<T> second)
Returns an expression that takes the result from the first expression and
divides it with the result of the second expression.
|
static <T> ToDouble<T> |
Expressions.divide(ToFloat<T> first,
ToInt<T> second)
Returns an expression that takes the result from the first expression and
divides it with the result of the second expression.
|
static <T> ToDouble<T> |
Expressions.divide(ToInt<T> first,
double second)
Returns an expression that takes the result from the first expression and
divides it with the result of the second expression.
|
static <T> ToDouble<T> |
Expressions.divide(ToInt<T> first,
int second)
Returns an expression that takes the result from the first expression and
divides it with the result of the second expression.
|
static <T> ToDouble<T> |
Expressions.divide(ToInt<T> first,
long second)
Returns an expression that takes the result from the first expression and
divides it with the result of the second expression.
|
static <T> ToDouble<T> |
Expressions.divide(ToInt<T> first,
ToDouble<T> second)
Returns an expression that takes the result from the first expression and
divides it with the result of the second expression.
|
static <T> ToDouble<T> |
Expressions.divide(ToInt<T> first,
ToInt<T> second)
Returns an expression that takes the result from the first expression and
divides it with the result of the second expression.
|
static <T> ToDouble<T> |
Expressions.divide(ToInt<T> first,
ToInt<T> second)
Returns an expression that takes the result from the first expression and
divides it with the result of the second expression.
|
static <T> ToDouble<T> |
Expressions.divide(ToInt<T> first,
ToLong<T> second)
Returns an expression that takes the result from the first expression and
divides it with the result of the second expression.
|
static <T> ToDouble<T> |
Expressions.divide(ToLong<T> first,
ToInt<T> second)
Returns an expression that takes the result from the first expression and
divides it with the result of the second expression.
|
static <T> ToDouble<T> |
Expressions.divide(ToShort<T> first,
ToInt<T> second)
Returns an expression that takes the result from the first expression and
divides it with the result of the second expression.
|
static <T> ToDouble<T> |
Expressions.intToDouble(ToInt<T> expression)
Creates and returns an expression that converts the result of the
specified expression into a
double by casting. |
static <T> ToDouble<T> |
Expressions.minus(ToDouble<T> first,
ToInt<T> second)
Creates and returns an expression that takes the result of the two
expressions and computes the difference.
|
static <T> ToFloat<T> |
Expressions.minus(ToFloat<T> first,
ToInt<T> second)
Creates and returns an expression that takes the result of the two
expressions and computes the difference.
|
static <T> ToInt<T> |
Expressions.minus(ToInt<T> first,
byte second)
Creates and returns an expression that takes the result of the expression
and subtracts a constant from it.
|
static <T> ToInt<T> |
Expressions.minus(ToInt<T> first,
int second)
Creates and returns an expression that takes the result of the expression
and subtracts a constant from it.
|
static <T> ToLong<T> |
Expressions.minus(ToInt<T> first,
long second)
Creates and returns an expression that takes the result of the expression
and subtracts a constant from it.
|
static <T> ToInt<T> |
Expressions.minus(ToInt<T> first,
ToByte<T> second)
Creates and returns an expression that takes the result of the two
expressions and computes the difference.
|
static <T> ToInt<T> |
Expressions.minus(ToInt<T> first,
ToInt<T> second)
Creates and returns an expression that takes the result of the two
expressions and computes the difference.
|
static <T> ToInt<T> |
Expressions.minus(ToInt<T> first,
ToInt<T> second)
Creates and returns an expression that takes the result of the two
expressions and computes the difference.
|
static <T> ToLong<T> |
Expressions.minus(ToLong<T> first,
ToInt<T> second)
Creates and returns an expression that takes the result of the two
expressions and computes the difference.
|
static <T> ToDouble<T> |
Expressions.multiply(ToDouble<T> first,
ToInt<T> second)
Creates and returns an expression that takes the result of the two
expressions and computes the product.
|
static <T> ToFloat<T> |
Expressions.multiply(ToFloat<T> first,
ToInt<T> second)
Creates and returns an expression that takes the result of the two
expressions and computes the product.
|
static <T> ToInt<T> |
Expressions.multiply(ToInt<T> first,
byte second)
Creates and returns an expression that takes the result of the expression
and multiplies a constant to it.
|
static <T> ToInt<T> |
Expressions.multiply(ToInt<T> first,
int second)
Creates and returns an expression that takes the result of the expression
and multiplies a constant to it.
|
static <T> ToLong<T> |
Expressions.multiply(ToInt<T> first,
long second)
Creates and returns an expression that takes the result of the expression
and multiplies a constant to it.
|
static <T> ToInt<T> |
Expressions.multiply(ToInt<T> first,
ToByte<T> second)
Creates and returns an expression that takes the result of the two
expressions and computes the product.
|
static <T> ToInt<T> |
Expressions.multiply(ToInt<T> first,
ToInt<T> second)
Creates and returns an expression that takes the result of the two
expressions and computes the product.
|
static <T> ToInt<T> |
Expressions.multiply(ToInt<T> first,
ToInt<T> second)
Creates and returns an expression that takes the result of the two
expressions and computes the product.
|
static <T> ToLong<T> |
Expressions.multiply(ToLong<T> first,
ToInt<T> second)
Creates and returns an expression that takes the result of the two
expressions and computes the product.
|
static <T> ToInt<T> |
Expressions.negate(ToInt<T> expression)
Creates and returns an expression that will compute the negative result
of the specified expression.
|
static <T> ToDouble<T> |
Expressions.plus(ToDouble<T> first,
ToInt<T> second)
Creates and returns an expression that takes the result of the two
expressions and add them together.
|
static <T> ToFloat<T> |
Expressions.plus(ToFloat<T> first,
ToInt<T> second)
Creates and returns an expression that takes the result of the two
expressions and add them together.
|
static <T> ToInt<T> |
Expressions.plus(ToInt<T> first,
byte second)
Creates and returns an expression that takes the result of the expression
and adds a constant to it.
|
static <T> ToInt<T> |
Expressions.plus(ToInt<T> first,
int second)
Creates and returns an expression that takes the result of the expression
and adds a constant to it.
|
static <T> ToLong<T> |
Expressions.plus(ToInt<T> first,
long second)
Creates and returns an expression that takes the result of the expression
and adds a constant to it.
|
static <T> ToInt<T> |
Expressions.plus(ToInt<T> first,
ToByte<T> second)
Creates and returns an expression that takes the result of the two
expressions and add them together.
|
static <T> ToInt<T> |
Expressions.plus(ToInt<T> first,
ToInt<T> second)
Creates and returns an expression that takes the result of the two
expressions and add them together.
|
static <T> ToInt<T> |
Expressions.plus(ToInt<T> first,
ToInt<T> second)
Creates and returns an expression that takes the result of the two
expressions and add them together.
|
static <T> ToLong<T> |
Expressions.plus(ToLong<T> first,
ToInt<T> second)
Creates and returns an expression that takes the result of the two
expressions and add them together.
|
static <T> ToDouble<T> |
Expressions.pow(ToByte<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> ToDouble<T> |
Expressions.pow(ToDouble<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> ToDouble<T> |
Expressions.pow(ToFloat<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> ToDouble<T> |
Expressions.pow(ToInt<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> ToDouble<T> |
Expressions.pow(ToInt<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> ToDouble<T> |
Expressions.pow(ToInt<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> ToDouble<T> |
Expressions.pow(ToInt<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> ToDouble<T> |
Expressions.pow(ToInt<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> ToDouble<T> |
Expressions.pow(ToLong<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> ToDouble<T> |
Expressions.pow(ToShort<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(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,
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,
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,
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,
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,
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> ToByte<T> |
Expressions.sign(ToInt<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> ToDouble<T> |
Expressions.sqrt(ToInt<T> expression)
Creates and returns an expression that returns the square root of the
result from the input expression.
|
| Modifier and Type | Interface and Description |
|---|---|
interface |
ToIntOrElse<T>
Specialized
NonNullableExpression for int values where a
default value is given if the original expression returns null. |
interface |
ToIntOrElseGet<T>
Specialized
NonNullableExpression for int values where a
getter function is applied if the original expression returns null. |
interface |
ToIntOrThrow<T>
Specialized
NonNullableExpression for int values where a
NullPointerException is thrown if the original expression returns
null. |
| Modifier and Type | Method and Description |
|---|---|
ToInt<T> |
HasAsInt.asInt()
Returns an expression that casts the result of the current expression
into an
int. |
| Modifier and Type | Method and Description |
|---|---|
ToDouble<T> |
HasDivide.divide(ToInt<T> divisor)
Creates and returns an expression that returns the quotient of the result
from the current expression and the divisor.
|
HasMinus<T> |
HasMinus.minus(ToInt<T> other)
Creates and returns an expression that returns the difference of the
result from the current expression and the other term.
|
HasMultiply<T> |
HasMultiply.multiply(ToInt<T> other)
Creates and returns an expression that returns the product of the result
from the current expression and the other factor.
|
HasPlus<T> |
HasPlus.plus(ToInt<T> other)
Creates and returns an expression that returns the sum of the result from
the current expression and the other term.
|
ToDouble<T> |
HasPow.pow(ToInt<T> power)
Creates and returns an expression that returns the exponential power of
the result from the current expression.
|
Copyright © 2019 Speedment, Inc.. All rights reserved.