程序包 proguard.util
类 ObjectUtil
- java.lang.Object
-
- proguard.util.ObjectUtil
-
@Deprecated public class ObjectUtil extends java.lang.Object已过时。This class should not be used anymore. It will be removed in a future release. UseObjectsinstead.This class contains utility methods operating on instances.- 从以下版本开始:
- 9.3.3
-
-
构造器概要
构造器 构造器 说明 ObjectUtil()已过时。
-
方法概要
所有方法 静态方法 具体方法 已过时的方法 修饰符和类型 方法 说明 static intcompare(java.lang.Comparable object1, java.lang.Comparable object2)已过时。Returns a comparison of the two given objects.static booleanequal(java.lang.Object object1, java.lang.Object object2)已过时。Returns whether the given objects are the same.static inthashCode(java.lang.Object object)已过时。Returns the hash code of the given object, or 0 if it is null.
-
-
-
方法详细资料
-
equal
public static boolean equal(java.lang.Object object1, java.lang.Object object2)已过时。Returns whether the given objects are the same.- 参数:
object1- the first object, may be null.object2- the second object, may be null.- 返回:
- whether the objects are the same.
-
hashCode
public static int hashCode(java.lang.Object object)
已过时。Returns the hash code of the given object, or 0 if it is null.- 参数:
object- the object, may be null.- 返回:
- the hash code.
-
compare
public static int compare(java.lang.Comparable object1, java.lang.Comparable object2)已过时。Returns a comparison of the two given objects.- 参数:
object1- the first object, may be null.object2- the second object, may be null.- 返回:
- -1, 0, or 1.
- 另请参阅:
Comparable.compareTo(Object)
-
-