Package io.github.handsomecoder.utils
Class ObjectUtils
- java.lang.Object
-
- io.github.handsomecoder.utils.ObjectUtils
-
public class ObjectUtils extends Object
The type Object utils.- Author:
- Harsh Shah
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleanisAllNotNull(Object... objects)Is all not null boolean.static booleanisAllNull(Object... objects)Is all null boolean.static booleanisAnyNull(Object... objects)Is any null boolean.static <T> booleanisInstance(Object object, Class<T> tClass)Is instance boolean.static booleanisNotNull(Object obj)Is not null boolean.static booleanisNull(Object obj)Is null boolean.
-
-
-
Method Detail
-
isNull
public static boolean isNull(Object obj)
Is null boolean.- Parameters:
obj- the obj- Returns:
- the boolean
-
isNotNull
public static boolean isNotNull(Object obj)
Is not null boolean.- Parameters:
obj- the obj- Returns:
- the boolean
-
isAnyNull
public static boolean isAnyNull(Object... objects)
Is any null boolean.- Parameters:
objects- the objects- Returns:
- the boolean
-
isAllNull
public static boolean isAllNull(Object... objects)
Is all null boolean.- Parameters:
objects- the objects- Returns:
- the boolean
-
isAllNotNull
public static boolean isAllNotNull(Object... objects)
Is all not null boolean.- Parameters:
objects- the objects- Returns:
- the boolean
-
-