Package com.speedment.runtime.compute.trait
Traits used in the base package for functional interfaces.
This package is part of the API.
- Since:
- 3.1.0
- Author:
- Emil Forslund
-
Interface Summary Interface Description HasAbs<E extends HasAbs<E>> Trait for expressions that has aHasAbs.abs()method for getting the absolute value of the result from the current expression.HasAsDouble<T> Trait for expressions that can be casted to adouble.HasAsInt<T> Trait for expressions that can be casted to anint.HasAsLong<T> Trait for expressions that can be casted to along.HasCase<T,RESULT extends Expression<T>> Trait for expressions that hasHasCase.toUpperCase()andHasCase.toLowerCase()operations.HasCompare<T> Trait for expressions that can also be used as aComparatorsince it has aHasCompare.compare(Object, Object)method.HasCompose<T> Trait for expressions that has aHasCompose.compose(Function)method similar toFunction.compose(Function), but even primitive expressions might implement this trait.HasDivide<T> Trait that describes an expression that has severalHasDivide.divide(int)-methods for generating new expressions for the division of this value with a certain divisor.HasHash<T> Trait for expressions that has a hash algorithm implemented for the type that it results in.HasMap<T,MAPPER,RESULT extends HasMap<T,MAPPER,RESULT>> Trait for expressions that can be mapped to a new expression of the same type by supplying a mapping function.HasMapIfPresent<T,MAPPER,RESULT extends HasMapIfPresent<T,MAPPER,RESULT>> Trait for expressions that can be mapped to a new expression of the same type by supplying a mapping function.HasMapToDouble<T,MAPPER> Trait for expressions that can be mapped to a new expression of the same type by supplying a mapping function.HasMapToDoubleIfPresent<T,MAPPER> Trait for nullable expressions that can be mapped to a new expression of the same type by supplying a mapping function.HasMinus<T> Trait that describes an expression that has severalHasMinus.minus(int)-methods for generating new expressions for the difference between this value and something else.HasMultiply<T> Trait that describes an expression that has severalHasMultiply.multiply(int)-methods for generating new expressions for the product of this value and something else.HasNegate<E extends HasNegate<E>> Trait for expressions that has aHasNegate.negate()method for getting the negative value of the result from the current expression.HasPlus<T> Trait that describes an expression that has severalHasPlus.plus(int)-methods for generating new expressions for the sum of this value and something else.HasPow<T> Trait for expressions that hasHasPow.pow(int)methods for getting the result of the current expression raised to a particular power.HasSign<E> Trait for expressions that has aHasSign.sign()method for getting the sign (positive, negative or zero) of the result from the current expression.HasSqrt<E> Trait for expressions that has aHasSqrt.sqrt()method for getting the square root of the result from the current expression.ToNullable<T,R,NON_NULLABLE extends Expression<T>> Trait for expressions that result in a nullable value.