Package-level declarations
Contains types such as NonZeroInt
for manipulating numbers.
Types
Parent of classes responsible for holding integers.
Context responsible for building an IntHolder.
Representation of negative integers, including zero.
Representation of integers other than zero.
Representation of positive integers, including zero.
Representation of strictly negative integers, excluding zero.
Representation of strictly positive integers, excluding zero.
Functions
Returns the value as a NegativeInt, or throws an NegativeInt.ConstructionError if the value is strictly positive.
Returns the value as a NegativeInt, or returns null
if the value is strictly positive.
Returns the value as a NegativeInt, or throws an IllegalArgumentException if the value is strictly positive.
Returns the value as a NonZeroInt, or throws an NonZeroInt.ConstructionError if the value equals zero.
Returns the value as a NonZeroInt, or returns null
if the value equals zero.
Returns the value as a NonZeroInt, or throws an IllegalArgumentException if the value equals zero.
Returns the value as a PositiveInt, or throws an PositiveInt.ConstructionError if the value is strictly negative.
Returns the value as a PositiveInt, or returns null
if the value is strictly negative.
Returns the value as a PositiveInt, or throws an IllegalArgumentException if the value is strictly negative.
Returns a random NegativeInt.
Returns a random NonZeroInt.
Returns a random PositiveInt.
Returns a random StrictlyNegativeInt.
Returns a random StrictlyPositiveInt.
Returns the value as a StrictlyNegativeInt, or throws an StrictlyNegativeInt.ConstructionError if the value is positive.
Returns the value as a StrictlyNegativeInt, or returns null
if the value is positive.
Returns the value as a StrictlyNegativeInt, or throws an IllegalArgumentException if the value is positive.
Returns the value as a StrictlyPositiveInt, or throws an StrictlyPositiveInt.ConstructionError if the value is negative.
Returns the value as a StrictlyPositiveInt, or returns null
if the value is negative.
Returns the value as a StrictlyPositiveInt, or throws an IllegalArgumentException if the value is negative.
Returns this value as a NegativeInt, or throws an NegativeInt.ConstructionError if this value is strictly positive.
Returns this value as a NegativeInt, or returns null
if this value is strictly positive.
Returns this value as a NegativeInt, or throws an IllegalArgumentException if this value is strictly positive.
Returns this value as a NonZeroInt, or throws an NonZeroInt.ConstructionError if this value equals zero.
Returns this value as a NonZeroInt, or returns null
if this value equals zero.
Returns this value as a NonZeroInt, or throws a IllegalArgumentException if this value equals zero.
Returns this value as a PositiveInt, or throws an PositiveInt.ConstructionError if this value is strictly negative.
Returns this value as a PositiveInt, or returns null
if this value is strictly negative.
Returns this value as a PositiveInt, or throws an IllegalArgumentException if this value is strictly negative.
Returns this value as a StrictlyNegativeInt, or throws an StrictlyNegativeInt.ConstructionError if this value is positive.
Returns this value as a StrictlyNegativeInt, or returns null
if this value is positive.
Returns this value as a StrictlyNegativeInt, or throws an IllegalArgumentException if this value is positive.
Returns this value as a StrictlyPositiveInt, or throws an StrictlyPositiveInt.ConstructionError if this value is negative.
Returns this value as a StrictlyPositiveInt, or returns null
if this value is negative.
Returns this value as a StrictlyPositiveInt, or throws an IllegalArgumentException if this value is negative.
Properties
Context responsible for building a StrictlyNegativeInt.
Context responsible for building a StrictlyPositiveInt.