Interface HasMinus<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 HasMinus<T>Trait that describes an expression that has severalminus(int)-methods for generating new expressions for the difference between 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 HasMinus<T>minus(byte other)Creates and returns an expression that returns the difference of the result from the current expression and the other term.ToDouble<T>minus(double other)Creates and returns an expression that returns the difference of the result from the current expression and the other term.HasMinus<T>minus(int other)Creates and returns an expression that returns the difference of the result from the current expression and the other term.HasMinus<T>minus(long other)Creates and returns an expression that returns the difference of the result from the current expression and the other term.HasMinus<T>minus(ToByte<T> other)Creates and returns an expression that returns the difference of the result from the current expression and the other term.ToDouble<T>minus(ToDouble<T> other)Creates and returns an expression that returns the difference of the result from the current expression and the other term.HasMinus<T>minus(ToInt<T> other)Creates and returns an expression that returns the difference of the result from the current expression and the other term.HasMinus<T>minus(ToLong<T> other)Creates and returns an expression that returns the difference of the result from the current expression and the other term.
-
-
-
Method Detail
-
minus
HasMinus<T> minus(byte other)
Creates and returns an expression that returns the difference of the result from the current expression and the other term. For an example, if the result of the current expression was9and the other term was set to3, then the result of the returned expression would be6.If this expression is nullable and the result was
null, then the result of the returned expression will also benull.- Parameters:
other- the other term used for the subtraction- Returns:
- the new expression
-
minus
HasMinus<T> minus(ToByte<T> other)
Creates and returns an expression that returns the difference of the result from the current expression and the other term. For an example, if the result of the current expression was9and the other term was set to3, then the result of the returned expression would be6.If this expression is nullable and the result was
null, then the result of the returned expression will also benull.- Parameters:
other- the other term used for the subtraction- Returns:
- the new expression
-
minus
HasMinus<T> minus(int other)
Creates and returns an expression that returns the difference of the result from the current expression and the other term. For an example, if the result of the current expression was9and the other term was set to3, then the result of the returned expression would be6.If this expression is nullable and the result was
null, then the result of the returned expression will also benull.- Parameters:
other- the other term used for the subtraction- Returns:
- the new expression
-
minus
HasMinus<T> minus(ToInt<T> other)
Creates and returns an expression that returns the difference of the result from the current expression and the other term. For an example, if the result of the current expression was9and the other term was set to3, then the result of the returned expression would be6.If this expression is nullable and the result was
null, then the result of the returned expression will also benull.- Parameters:
other- the other term used for the subtraction- Returns:
- the new expression
-
minus
HasMinus<T> minus(long other)
Creates and returns an expression that returns the difference of the result from the current expression and the other term. For an example, if the result of the current expression was9and the other term was set to3, then the result of the returned expression would be6.If this expression is nullable and the result was
null, then the result of the returned expression will also benull.- Parameters:
other- the other term used for the subtraction- Returns:
- the new expression
-
minus
HasMinus<T> minus(ToLong<T> other)
Creates and returns an expression that returns the difference of the result from the current expression and the other term. For an example, if the result of the current expression was9and the other term was set to3, then the result of the returned expression would be6.If this expression is nullable and the result was
null, then the result of the returned expression will also benull.- Parameters:
other- the other term used for the subtraction- Returns:
- the new expression
-
minus
ToDouble<T> minus(double other)
Creates and returns an expression that returns the difference of the result from the current expression and the other term. For an example, if the result of the current expression was9and the other term was set to3, then the result of the returned expression would be6.If this expression is nullable and the result was
null, then the result of the returned expression will also benull.- Parameters:
other- the other term used for the subtraction- Returns:
- the new expression
-
minus
ToDouble<T> minus(ToDouble<T> other)
Creates and returns an expression that returns the difference of the result from the current expression and the other term. For an example, if the result of the current expression was9and the other term was set to3, then the result of the returned expression would be6.If this expression is nullable and the result was
null, then the result of the returned expression will also benull.- Parameters:
other- the other term used for the subtraction- Returns:
- the new expression
-
-