|
JIDE Common Layer 2.7.6 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.jidesoft.comparator.DefaultComparator
public class DefaultComparator
Badly named, this class compares objects by first converting them to Strings using the toString method.
| Constructor Summary | |
|---|---|
protected |
DefaultComparator()
Constructor. |
| Method Summary | |
|---|---|
int |
compare(java.lang.Object o1,
java.lang.Object o2)
Compares two Objects using the toString() method as the value of each object to compare. |
static DefaultComparator |
getInstance()
Returns ObjectComparator singleton. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.util.Comparator |
|---|
equals |
| Constructor Detail |
|---|
protected DefaultComparator()
| Method Detail |
|---|
public static DefaultComparator getInstance()
public int compare(java.lang.Object o1,
java.lang.Object o2)
compare in interface java.util.Comparatoro1 - the first object to be comparedo2 - the second object to be compared
|
JIDE Common Layer 2.7.6 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||