public final class Objects extends Object
Objects
except does not contain an implementation of
Objects.deepEquals(java.lang.Object, java.lang.Object)
. Added for Android compatibility since the Java 1.7
API is not available before Android KitKat 4.4.Modifier and Type | Method and Description |
---|---|
static <T> int |
compare(T a,
T b,
Comparator<? super T> c) |
static boolean |
equals(Object a,
Object b) |
static int |
hash(Object... values) |
static int |
hashCode(Object o) |
static <T> T |
requireNotNull(T o) |
static <T> T |
requireNotNull(T o,
String message) |
static String |
toString(Object o) |
static String |
toString(Object o,
String nullString) |
public static <T> T requireNotNull(T o)
public static <T> T requireNotNull(T o, String message)
public static int hash(Object... values)
public static int hashCode(Object o)
public static <T> int compare(T a, T b, Comparator<? super T> c)