程序包 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. Use Objects instead.
    This class contains utility methods operating on instances.
    从以下版本开始:
    9.3.3
    • 构造器概要

      构造器 
      构造器 说明
      ObjectUtil()
      已过时。
       
    • 方法概要

      所有方法 静态方法 具体方法 已过时的方法 
      修饰符和类型 方法 说明
      static int compare​(java.lang.Comparable object1, java.lang.Comparable object2)
      已过时。
      Returns a comparison of the two given objects.
      static boolean equal​(java.lang.Object object1, java.lang.Object object2)
      已过时。
      Returns whether the given objects are the same.
      static int hashCode​(java.lang.Object object)
      已过时。
      Returns the hash code of the given object, or 0 if it is null.
      • 从类继承的方法 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 构造器详细资料

      • ObjectUtil

        public ObjectUtil()
        已过时。
    • 方法详细资料

      • 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)