您的位置:首页 > 移动开发 > Objective-C

java.util.Objects的主要方法

2016-10-09 12:38 225 查看
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)
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: