Checks if value is not negative.
To check if not negative.
true
if the value is not negative, otherwise false
.
Checks if a value is not null
or undefined
.
Type of the value.
Value to check if not null
or undefined
.
true
if the value is not null
or undefined
, otherwise false
.
Checks if a value is null
or undefined
.
Type of the value.
Value to check if null
or undefined
.
true
if the value isnull
or undefined
, otherwise false
.
Checks if a value is positive.
Value to check if positive.
true
if the value is positive, otherwise false
.
Throws if condition is false
Throws if false.
Error or message to be used instead of generic.
Throws if value is not a number or negative.
Throws if not a number or negative.
Error or message to be used instead of generic.
Throws if value is null
or undefined
.
Type of value being check for null.
Throws if null
or undefined
.
Error or message to be used instead of generic.
Throws if value is not a number, zero, or negative.
Throws if not a number, zero, or negative.
Error or message to be used instead of generic.
Class contain methods for checking conditions.
Based on Guava's Preconditions. But a bit simpler.
Methods starting with
verify
throw on failure, while methods starting withis
returnboolean
.