Useful for command line tools or writing out refs to file.
| Modifier and Type | Field and Description |
|---|---|
| public static final RefComparator | INSTANCE
Singleton instance of RefComparator |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public int | compare(Ref
the first object to be compared. o1, Ref the second object to be compared. o2)Implements java. Compares its two arguments for order. |
| public static int | |
| public static int | |
| public static Collection | Returns: sorted collection of refscollection to be sorted refs)Sorts the collection of refs, returning a new collection. |
| INSTANCE | back to summary |
|---|---|
| public static final RefComparator INSTANCE Singleton instance of RefComparator | |
| RefComparator | back to summary |
|---|---|
| public RefComparator() | |
| compare | back to summary |
|---|---|
| public int compare(Ref o1, Ref 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 | |
| compareTo | back to summary |
|---|---|
| public static int compareTo(Ref o1, String o2) Compare a reference to a name. | |
| compareTo | back to summary |
|---|---|
| public static int compareTo(Ref o1, Ref o2) Compare two references by name. | |
| sort | back to summary |
|---|---|
| public static Collection Sorts the collection of refs, returning a new collection.
| |