|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.tensegrity.generic.util.Comparison
The class Comparison contains methods used to compare
java objects in a safe way, meaning that values are checked against null.
| Constructor Summary | |
Comparison()
|
|
| Method Summary | |
static boolean |
safeEquals(java.lang.Object obj1,
java.lang.Object obj2)
Checks if the two given objects are equal, includes a check for null values |
static boolean |
safeEqualsIgnoreCase(java.lang.String str1,
java.lang.String str2)
Checks if the two given strings are equal (ignoring case), includes a check for null values |
static int |
safeHashCode(java.lang.Object obj)
Returns the hashcode of the object. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Comparison()
| Method Detail |
public static final boolean safeEquals(java.lang.Object obj1,
java.lang.Object obj2)
obj1 - The first objectobj2 - The second object
public static final boolean safeEqualsIgnoreCase(java.lang.String str1,
java.lang.String str2)
str1 - The first stringstr2 - The second string
public static final int safeHashCode(java.lang.Object obj)
obj - The object to get the hashcode of
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||