public final class Objects extends Object
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) |
static int |
hash(Object... values) |
static int |
hashCode(Object o) |
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 <T> int compare(T a, T b, Comparator<? super T> c)
public static int hashCode(Object o)
public static int hash(Object... values)
public static <T> T requireNonNull(T obj)
public static <T> T requireNonNull(T obj, String message)
Copyright © 2018. All rights reserved.