Interface HasNegate<E extends HasNegate<E>>
-
- Type Parameters:
E- the expression type returned by thenegate()method
- All Known Subinterfaces:
ToBigDecimal<T>,ToBigDecimalOrElse<T>,ToBigDecimalOrElseGet<T>,ToBigDecimalOrThrow<T>,ToByte<T>,ToByteNullable<T>,ToByteOrElse<T>,ToByteOrElseGet<T>,ToByteOrThrow<T>,ToDouble<T>,ToDoubleNullable<T>,ToDoubleOrElse<T>,ToDoubleOrElseGet<T>,ToDoubleOrThrow<T>,ToFloat<T>,ToFloatNullable<T>,ToFloatOrElse<T>,ToFloatOrElseGet<T>,ToFloatOrThrow<T>,ToInt<T>,ToIntNullable<T>,ToIntOrElse<T>,ToIntOrElseGet<T>,ToIntOrThrow<T>,ToLong<T>,ToLongNullable<T>,ToLongOrElse<T>,ToLongOrElseGet<T>,ToLongOrThrow<T>,ToShort<T>,ToShortNullable<T>,ToShortOrElse<T>,ToShortOrElseGet<T>,ToShortOrThrow<T>
public interface HasNegate<E extends HasNegate<E>>Trait for expressions that has anegate()method for getting the negative value of the result from the current expression. For an example, a positive value will become negative and a negative value will become positive.- Since:
- 3.1.0
- Author:
- Emil Forslund
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Enegate()Returns a new expression that returns the absolute value of the result of the current expression.
-
-
-
Method Detail
-
negate
E negate()
Returns a new expression that returns the absolute value of the result of the current expression. For an example, a positive value will become negative and a negative value will become positive.- Returns:
- the new expression
-
-