Interface HasMultiply<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 HasMultiply<T>Trait that describes an expression that has severalmultiply(int)-methods for generating new expressions for the product of this value and something else.- Since:
- 3.1.0
- Author:
- Emil Forslund
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description HasMultiply<T>multiply(byte other)Creates and returns an expression that returns the product of the result from the current expression and the other factor.ToDouble<T>multiply(double other)Creates and returns an expression that returns the product of the result from the current expression and the other factor.HasMultiply<T>multiply(int other)Creates and returns an expression that returns the product of the result from the current expression and the other factor.HasMultiply<T>multiply(long other)Creates and returns an expression that returns the product of the result from the current expression and the other factor.HasMultiply<T>multiply(ToByte<T> other)Creates and returns an expression that returns the product of the result from the current expression and the other factor.ToDouble<T>multiply(ToDouble<T> other)Creates and returns an expression that returns the product of the result from the current expression and the other factor.HasMultiply<T>multiply(ToInt<T> other)Creates and returns an expression that returns the product of the result from the current expression and the other factor.HasMultiply<T>multiply(ToLong<T> other)Creates and returns an expression that returns the product of the result from the current expression and the other factor.
-
-
-
Method Detail
-
multiply
HasMultiply<T> multiply(byte other)
Creates and returns an expression that returns the product of the result from the current expression and the other factor. For an example, if the result of the current expression was9and the factor was set to3, then the result of the returned expression would be27.If this expression is nullable and the result was
null, then the result of the returned expression will also benull.- Parameters:
other- the other factor used for the multiplication- Returns:
- the new expression
-
multiply
HasMultiply<T> multiply(ToByte<T> other)
Creates and returns an expression that returns the product of the result from the current expression and the other factor. For an example, if the result of the current expression was9and the factor was set to3, then the result of the returned expression would be27.If this expression is nullable and the result was
null, then the result of the returned expression will also benull.- Parameters:
other- the other factor used for the multiplication- Returns:
- the new expression
-
multiply
HasMultiply<T> multiply(int other)
Creates and returns an expression that returns the product of the result from the current expression and the other factor. For an example, if the result of the current expression was9and the factor was set to3, then the result of the returned expression would be27.If this expression is nullable and the result was
null, then the result of the returned expression will also benull.- Parameters:
other- the other factor used for the multiplication- Returns:
- the new expression
-
multiply
HasMultiply<T> multiply(ToInt<T> other)
Creates and returns an expression that returns the product of the result from the current expression and the other factor. For an example, if the result of the current expression was9and the factor was set to3, then the result of the returned expression would be27.If this expression is nullable and the result was
null, then the result of the returned expression will also benull.- Parameters:
other- the other factor used for the multiplication- Returns:
- the new expression
-
multiply
HasMultiply<T> multiply(long other)
Creates and returns an expression that returns the product of the result from the current expression and the other factor. For an example, if the result of the current expression was9and the factor was set to3, then the result of the returned expression would be27.If this expression is nullable and the result was
null, then the result of the returned expression will also benull.- Parameters:
other- the other factor used for the multiplication- Returns:
- the new expression
-
multiply
HasMultiply<T> multiply(ToLong<T> other)
Creates and returns an expression that returns the product of the result from the current expression and the other factor. For an example, if the result of the current expression was9and the factor was set to3, then the result of the returned expression would be27.If this expression is nullable and the result was
null, then the result of the returned expression will also benull.- Parameters:
other- the other factor used for the multiplication- Returns:
- the new expression
-
multiply
ToDouble<T> multiply(double other)
Creates and returns an expression that returns the product of the result from the current expression and the other factor. For an example, if the result of the current expression was9and the factor was set to3, then the result of the returned expression would be27.If this expression is nullable and the result was
null, then the result of the returned expression will also benull.- Parameters:
other- the other factor used for the multiplication- Returns:
- the new expression
-
multiply
ToDouble<T> multiply(ToDouble<T> other)
Creates and returns an expression that returns the product of the result from the current expression and the other factor. For an example, if the result of the current expression was9and the factor was set to3, then the result of the returned expression would be27.If this expression is nullable and the result was
null, then the result of the returned expression will also benull.- Parameters:
other- the other factor used for the multiplication- Returns:
- the new expression
-
-