1.public static boolean equals(Object a, Object b)
2. public static int hashCode(Object o)
Returns the hash code of a non-null
argument and 0 for a null
argument.
3.public static int hash(Object... values)
Generates a hash code for a sequence of input values. The hash code is generated as if all the input values were placed into an array, and that array were hashed by calling Arrays.hashCode(Object[])
.
4.public static <T> int compare(T a, T b, Comparator<? super T> c)
5.public static <T> T requireNonNull(T obj)
时间: 2024-10-28 09:54:50