程序包 proguard.util

类 ObjectUtil

java.lang.Object
proguard.util.ObjectUtil

@Deprecated public class ObjectUtil extends 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

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

    • equal

      public static boolean equal(Object object1, 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(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(Comparable object1, 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.
      另请参阅: