Package-level declarations
Contains types such as NonZeroInt
for manipulating numbers.
Types
Representation of all integers.
Representation of negative integers including zero.
Representation of integers other than zero.
Representation of positive integers including zero.
Representation of negative integers excluding zero.
Represents strictly positive floating-point numbers represented by the Double type.
Representation of positive integers excluding zero.
Representation of the zero integer.
Functions
Calculates the remainder of truncating division of this integer by the other one.
Returns this number as an encapsulated NegativeInt, which may involve rounding or truncation, or returns an encapsulated IllegalArgumentException if this number is strictly positive.
Returns this number as an encapsulated NonZeroInt, which may involve rounding or truncation, or returns an encapsulated IllegalArgumentException if this number equals zero.
Returns this number as an encapsulated PositiveInt, which may involve rounding or truncation, or returns an encapsulated IllegalArgumentException if this number is strictly negative.
Returns this number as an encapsulated StrictlyNegativeInt, which may involve rounding or truncation, or returns an encapsulated IllegalArgumentException if this number is positive.
Returns this number as an encapsulated StrictlyPositiveDouble, which may involve rounding or truncation, or returns an encapsulated IllegalArgumentException if this number is negative.
Returns this number as an encapsulated StrictlyPositiveInt, which may involve rounding or truncation, or returns an encapsulated IllegalArgumentException if this number is negative.
Returns the negative of this integer.