Object#toString() values.
This class is stateless.
| Modifier and Type | Field and Description |
|---|---|
| public static final ObjectToStringComparator | INSTANCE
The singleton instance. |
| private static final long |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public int | compare(final Object o1, final Object o2)
Implements java. Compares its two arguments for order. |
| INSTANCE | back to summary |
|---|---|
| public static final ObjectToStringComparator INSTANCE The singleton instance. This class is stateless. | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID For | |
| ObjectToStringComparator | back to summary |
|---|---|
| public ObjectToStringComparator()
Deprecated Will be private in 4.0.0. Constructs a new instance.
| |
| compare | back to summary |
|---|---|
| public int compare(final Object o1, final Object o2) Implements java. Doc from java. Compares its two arguments for order. Returns a negative integer, zero, or a positive integer as the first argument is less than, equal to, or greater than the second.
The implementor must ensure that
The implementor must also ensure that the relation is transitive:
Finally, the implementor must ensure that
| |