Package com.orsonpdf.util
Class ObjectUtils
java.lang.Object
com.orsonpdf.util.ObjectUtils
Some utility methods.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
ObjectUtils
private ObjectUtils()
-
-
Method Details
-
equals
Returnstrue
if the objects are equal or bothnull
, andfalse
otherwise. In Java 7, we could use theObjects
class instead.- Parameters:
obj1
- object 1.obj2
- object 2.- Returns:
- A boolean.
-
hashCode
Returns the hash code for the object, or 0 if the object isnull
. In Java 7, we could use theObjects
class instead.- Parameters:
obj
- the object (null
permitted).- Returns:
- The hash code or 0.
-