Package proguard.util
Class ObjectUtil
java.lang.Object
proguard.util.ObjectUtil
Deprecated.
This class contains utility methods operating on instances.
- Since:
- 9.3.3
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic intcompare(Comparable object1, Comparable object2) Deprecated.Returns a comparison of the two given objects.static booleanDeprecated.Returns whether the given objects are the same.static intDeprecated.Returns the hash code of the given object, or 0 if it is null.
-
Constructor Details
-
ObjectUtil
public ObjectUtil()Deprecated.
-
-
Method Details
-
equal
Deprecated.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
Deprecated.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
Deprecated.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:
-
Objectsinstead.