|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.spy.util.ToStringComparator
public class ToStringComparator
A Comparator that compares the String representation of objects.
| Field Summary | |
|---|---|
static int |
NULLS_FIRST
For sort order with nulls first. |
static int |
NULLS_LAST
For sort order with nulls last. |
| Constructor Summary | |
|---|---|
ToStringComparator()
Get an instance of ToStringComparator sorting nulls last. |
|
ToStringComparator(int no)
Get a ToStringComparator with the provided null order. |
|
| Method Summary | |
|---|---|
int |
compare(java.lang.Object o1,
java.lang.Object o2)
Perform the comparison. |
| 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 |
| Field Detail |
|---|
public static final int NULLS_FIRST
public static final int NULLS_LAST
| Constructor Detail |
|---|
public ToStringComparator()
public ToStringComparator(int no)
no - how nulls are ordered| Method Detail |
|---|
public int compare(java.lang.Object o1,
java.lang.Object o2)
compare in interface java.util.Comparator<java.lang.Object>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||