Class Objects


  • public final class Objects
    extends Object
    Static Object Utilities.
    • Method Detail

      • equals

        public static boolean equals​(Object o1,
                                     Object o2)
        Check, in a null-safe way, that o1 equals o2.
        Parameters:
        o1 - First object to check.
        o2 - Second object to check.
        Returns:
        true if o1 equals o2, false otherwise.
      • hashCode

        public static int hashCode​(Object... objects)
        Compute hashcode of given objects.
        Parameters:
        objects - List of objects.
        Returns:
        Hash code value.