|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.directwebremoting.util.CompareUtil
public class CompareUtil
Some utilities for comparing objects that could be null
| Constructor Summary | |
|---|---|
CompareUtil()
|
|
| Method Summary | ||
|---|---|---|
static
|
compare(java.lang.Comparable<T> o1,
T o2)
Compare 2 objects taking account of the fact that either could be null |
|
static boolean |
equals(java.lang.Object o1,
java.lang.Object o2)
Compare 2 objects taking account of the fact that either could be null |
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CompareUtil()
| Method Detail |
|---|
public static <T> int compare(java.lang.Comparable<T> o1,
T o2)
T - The type that we are comparingo1 - The first object to compareo2 - The second object to compare
public static boolean equals(java.lang.Object o1,
java.lang.Object o2)
o1 - The first object to compareo2 - The second object to compare
|
Copyright ยจ 2008 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||