Interface HasPow<T>
-
- Type Parameters:
T- the input type
- All Known Subinterfaces:
ToBigDecimal<T>,ToBigDecimalOrElse<T>,ToBigDecimalOrElseGet<T>,ToBigDecimalOrThrow<T>,ToByte<T>,ToByteOrElse<T>,ToByteOrElseGet<T>,ToByteOrThrow<T>,ToDouble<T>,ToDoubleOrElse<T>,ToDoubleOrElseGet<T>,ToDoubleOrThrow<T>,ToFloat<T>,ToFloatOrElse<T>,ToFloatOrElseGet<T>,ToFloatOrThrow<T>,ToInt<T>,ToIntOrElse<T>,ToIntOrElseGet<T>,ToIntOrThrow<T>,ToLong<T>,ToLongOrElse<T>,ToLongOrElseGet<T>,ToLongOrThrow<T>,ToShort<T>,ToShortOrElse<T>,ToShortOrElseGet<T>,ToShortOrThrow<T>
public interface HasPow<T>Trait for expressions that haspow(int)methods for getting the result of the current expression raised to a particular power.- Since:
- 3.1.0
- Author:
- Emil Forslund
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ToDouble<T>pow(double power)Creates and returns an expression that returns the exponential power of the result from the current expression.ToDouble<T>pow(int power)Creates and returns an expression that returns the exponential power of the result from the current expression.ToDouble<T>pow(ToDouble<T> power)Creates and returns an expression that returns the exponential power of the result from the current expression.ToDouble<T>pow(ToInt<T> power)Creates and returns an expression that returns the exponential power of the result from the current expression.
-
-
-
Method Detail
-
pow
ToDouble<T> pow(int power)
Creates and returns an expression that returns the exponential power of the result from the current expression. For an example, if the result of the current expression was-3and the power was set to2, then the result of the returned expression would be9.If this expression is nullable and the result was
null, then the result of the returned expression will also benull.- Parameters:
power- the power to use as the exponent- Returns:
- the new expression
-
pow
ToDouble<T> pow(double power)
Creates and returns an expression that returns the exponential power of the result from the current expression. For an example, if the result of the current expression was-3and the power was set to2, then the result of the returned expression would be9.If this expression is nullable and the result was
null, then the result of the returned expression will also benull.- Parameters:
power- the power to use as the exponent- Returns:
- the new expression
-
pow
ToDouble<T> pow(ToInt<T> power)
Creates and returns an expression that returns the exponential power of the result from the current expression. For an example, if the result of the current expression was-3and the power was set to2, then the result of the returned expression would be9.If this expression is nullable and the result was
null, then the result of the returned expression will also benull.- Parameters:
power- the power to use as the exponent- Returns:
- the new expression
-
pow
ToDouble<T> pow(ToDouble<T> power)
Creates and returns an expression that returns the exponential power of the result from the current expression. For an example, if the result of the current expression was-3and the power was set to2, then the result of the returned expression would be9.If this expression is nullable and the result was
null, then the result of the returned expression will also benull.- Parameters:
power- the power to use as the exponent- Returns:
- the new expression
-
-