Class ObjectUtils


  • public class ObjectUtils
    extends Object
    The type Object utils.
    Author:
    Harsh Shah
    • 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
      • isInstance

        public static <T> boolean isInstance​(Object object,
                                             Class<T> tClass)
        Is instance boolean.
        Type Parameters:
        T - the type parameter
        Parameters:
        object - the object
        tClass - the t class
        Returns:
        the boolean