首页 > 编程语言 > 详细

java.util.Objects的主要方法

时间:2016-10-09 14:26:19      阅读:302      评论: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
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!