|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

java.lang.Objectorg.apache.tiles.CompareUtil
public final class CompareUtil
Utilities to work with comparation between objects.
| Method Summary | |
|---|---|
static boolean |
nullSafeEquals(Object obj1,
Object obj2)
Checks if two objects (eventually null) are the same. |
static int |
nullSafeHashCode(Object obj)
Returns 0 if the object is null, the hash code of the object
otherwise. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static boolean nullSafeEquals(Object obj1,
Object obj2)
obj1 - The first object to check.obj2 - The second object to check.
true if the objects are the same.public static int nullSafeHashCode(Object obj)
0 if the object is null, the hash code of the object
otherwise.
obj - The object from which the hash code must be calculated..
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||