defined
The defined test checks if a variable exists.
Example |
|
empty
The empty test checks if a variable is empty. A variable is empty if it is null, an empty string, an empty collection, or an empty map.
Example |
|
even
The even test checks if an integer is even.
Example |
|
iterable
The iterable test checks if a variable implements java.lang.Iterable.
Example |
|
map
The map test checks if a variable is an instance of a map.
Example |
|
null
The null test checks if a variable is null.
Example |
|
odd
The odd test checks if an integer is odd.
Example |
|
boolean
The boolean test checks if the input is a Boolean or viable to be casted as a Boolean.
Example |
|
Example 2 |
|
instanceof
The instanceof test checks if the input is of the specified class.
Example |
|
Example 2 |
|
number
The number test checks if the input is a Number or viable to be casted as a Number. The input can be either a numeric value or a String.
Example |
|
Example 2 |
|
string
The string test checks if the input is a String.
Example |
|