- ensureNonNull
Makes sure that an argument is non-null. If the given object is null, then a
NullArgumentException i
- ensureBetween
Ensures that the given long value is between the given bounds, inclusive.
- ensureNonEmpty
Makes sure that a character sequence is non-null and non-empty. If the given
text is null, then a Nu
- ensureNonNullElement
Makes sure that an array element is non-null. If element is null, then a
NullArgumentException is th
- ensureStrictlyPositive
Ensures that the given long value is greater than zero.
- ensurePositive
Ensures that the given long value is greater than or equals to zero.
- ensureDimensionMatches
Ensures that the given vector, if non-null, has the expected number of
dimensions (taken as its leng
- ensureValidIndex
Ensures that the given index is equals or greater than zero and lower than the
given upper value. Th
- ensureCanCast
Ensures that the specified value is null or an instance assignable to the given
type. If this method
- ensureFinite
Ensures that the given floating point value is not Float#isNaN(float) neither
Float#isInfinite(float
- ensureValidIndexRange
Ensures that the given index range is valid for a sequence of the given length.
This method is desig
- ensureSizeBetween
Ensures that the given collection size of array length is between the given
bounds, inclusive. This