public final class Objects extends Object
| Constructor and Description | 
|---|
| Objects() | 
| Modifier and Type | Method and Description | 
|---|---|
| static <T> int | compare(T a,
       T b,
       Comparator<? super T> c) | 
| static boolean | deepEquals(Object a,
          Object b) | 
| static boolean | equals(Object a,
      Object b)Returns true if the arguments are equal to each other and false otherwise. | 
| static int | hash(Object... values) | 
| static int | hashCode(Object o)Returns the hash code of a non-null argument and 0 for a null argument. | 
| static boolean | nonNull(Object obj) | 
| static <T> T | requireNonNull(T obj) | 
| static <T> T | requireNonNull(T obj,
              String message) | 
| static String | toString(Object o) | 
| static String | toString(Object o,
        String nullDefault) | 
public static boolean equals(Object a, Object b)
a - b - public static int hashCode(Object o)
o - public static <T> int compare(T a,
                              T b,
                              Comparator<? super T> c)
public static <T> T requireNonNull(T obj)
public static <T> T requireNonNull(T obj,
                                   String message)
public static boolean nonNull(Object obj)
public static int hash(Object... values)