码迷,mamicode.com
首页 > 编程语言 > 详细

java.util.Objects的主要方法

时间:2016-10-09 14:27:14      阅读:168      评论:0      收藏:0      [点我收藏+]

标签:

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)

 

java.util.Objects的主要方法

标签:

原文地址:http://www.cnblogs.com/fengfengtk/p/5941698.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!