public final class ObjectUtils extends Object
Constructor and Description |
---|
ObjectUtils() |
Modifier and Type | Method and Description |
---|---|
static boolean |
isArray(Object value)
Check whether the given value is an array.
|
static boolean |
isEmpty(Object value)
Check whether the given value is empty.
|
static boolean |
notEmpty(Object value)
Check whether the given value is not empty.
|
public static boolean isArray(Object value)
value
- the value to checkpublic static boolean isEmpty(Object value)
An object value is empty if:
Optional
and Optional.empty()
Array
with length 0
CharSequence
with length 0
Collection
or Map
with size 0
value
- the object value to checkpublic static boolean notEmpty(Object value)
value
- the object value to checkisEmpty(Object)