public final class Objects
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static <T> int |
compare(T a,
T b,
java.util.Comparator<? super T> c) |
static boolean |
deepEquals(java.lang.Object a,
java.lang.Object b) |
static boolean |
equals(java.lang.Object a,
java.lang.Object b) |
static int |
hash(java.lang.Object... values) |
static int |
hashCode(java.lang.Object object) |
static boolean |
isNull(java.lang.Object obj) |
static boolean |
nonNull(java.lang.Object obj) |
static <T> T |
requireNonNull(T t) |
static <T> T |
requireNonNull(T t,
java.lang.String msg) |
static <T> T |
requireNonNull(T t,
java.util.function.Supplier<java.lang.String> messageSupplier) |
static java.lang.String |
toString(java.lang.Object o) |
static java.lang.String |
toString(java.lang.Object o,
java.lang.String nullDefault) |
public static <T> int compare(T a, T b, java.util.Comparator<? super T> c)
public static boolean deepEquals(java.lang.Object a, java.lang.Object b)
public static boolean equals(java.lang.Object a, java.lang.Object b)
public static int hash(java.lang.Object... values)
public static int hashCode(java.lang.Object object)
public static boolean isNull(java.lang.Object obj)
public static boolean nonNull(java.lang.Object obj)
public static <T> T requireNonNull(T t)
public static <T> T requireNonNull(T t, java.lang.String msg)
public static <T> T requireNonNull(T t, java.util.function.Supplier<java.lang.String> messageSupplier)
public static java.lang.String toString(java.lang.Object o)
public static java.lang.String toString(java.lang.Object o, java.lang.String nullDefault)