Package com.orsonpdf.util
Class ObjectUtils
- java.lang.Object
-
- com.orsonpdf.util.ObjectUtils
-
public class ObjectUtils extends java.lang.ObjectSome utility methods.
-
-
Constructor Summary
Constructors Modifier Constructor Description privateObjectUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleanequals(java.lang.Object obj1, java.lang.Object obj2)Returnstrueif the objects are equal or bothnull, andfalseotherwise.static inthashCode(java.lang.Object obj)Returns the hash code for the object, or 0 if the object isnull.
-
-
-
Method Detail
-
equals
public static boolean equals(java.lang.Object obj1, java.lang.Object obj2)Returnstrueif the objects are equal or bothnull, andfalseotherwise. In Java 7, we could use theObjectsclass instead.- Parameters:
obj1- object 1.obj2- object 2.- Returns:
- A boolean.
-
hashCode
public static int hashCode(java.lang.Object obj)
Returns the hash code for the object, or 0 if the object isnull. In Java 7, we could use theObjectsclass instead.- Parameters:
obj- the object (nullpermitted).- Returns:
- The hash code or 0.
-
-