ResultContext
Context available when calling the resultOf function.
Functions
Returns this number as a NegativeInt, which may involve rounding or truncation, or throws an IllegalArgumentException if this number is strictly positive.
Returns this number as a NonZeroInt, which may involve rounding or truncation, or throws an IllegalArgumentException if this number equals zero.
Returns this string as a NotBlankString, or throws an IllegalArgumentException if this string is blank.
Returns a NotEmptyList containing all the elements of this collection, or throws an IllegalArgumentException if this collection is empty.
Returns a NotEmptyMap containing all the entries of this map, or throws an IllegalArgumentException if this map is empty.
Returns a NotEmptySet containing all the elements of this collection, or throws an IllegalArgumentException if this collection is empty.
Returns this number as a PositiveInt, which may involve rounding or truncation, or throws an IllegalArgumentException if this number is strictly negative.
Returns this number as a StrictlyNegativeInt, which may involve rounding or truncation, or throws an IllegalArgumentException if this number is positive.
Returns this number as a StrictlyPositiveDouble, which may involve rounding or truncation, or throws an IllegalArgumentException if this number is negative.
Returns this number as a StrictlyPositiveInt, which may involve rounding or truncation, or throws an IllegalArgumentException if this number is negative.