NegativeInt
Represents negative integers, including 0.
Constructors
Returns the value as a negative int, or throws an IllegalArgumentException if the value is strictly positive.
Types
Functions
Compares this value with the other value for order. Returns 0 if this value equals the other value, a negative number if this value is less than the other value, or a positive number if this value is greater than the other value.
Divides this value by the other value, truncating the result to an integer that is closer to 0. Throws an ArithmeticException if the other value equals 0.
Returns this value as a non-zero int, or throws an IllegalArgumentException if this value equals 0.
Returns the string representation of this value as a not blank string.
Returns this value as a positive int, or throws an IllegalArgumentException if this value is strictly negative.
Returns this value as a strictly negative int, or throws an IllegalArgumentException if this value equals 0.
Returns the negative of this value.
Returns this value.