Package com.orsonpdf.util
Class ObjectUtils
- java.lang.Object
-
- com.orsonpdf.util.ObjectUtils
-
public class ObjectUtils extends java.lang.Object
Some utility methods.
-
-
Constructor Summary
Constructors Modifier Constructor Description private
ObjectUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
equals(java.lang.Object obj1, java.lang.Object obj2)
Returnstrue
if the objects are equal or bothnull
, andfalse
otherwise.static int
hashCode(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)
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
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 theObjects
class instead.- Parameters:
obj
- the object (null
permitted).- Returns:
- The hash code or 0.
-
-