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