Package proguard.util

Class ObjectUtil

java.lang.Object
proguard.util.ObjectUtil

public class ObjectUtil extends Object
This class contains utility methods operating on instances.
  • Constructor Details

    • ObjectUtil

      public ObjectUtil()
  • Method Details

    • equal

      public static boolean equal(Object object1, Object object2)
      Returns whether the given objects are the same.
      Parameters:
      object1 - the first object, may be null.
      object2 - the second object, may be null.
      Returns:
      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.
      Parameters:
      object - the object, may be null.
      Returns:
      the hash code.
    • compare

      public static int compare(Comparable object1, Comparable object2)
      Returns a comparison of the two given objects.
      Parameters:
      object1 - the first object, may be null.
      object2 - the second object, may be null.
      Returns:
      -1, 0, or 1.
      See Also: