Desired semantic ordering:
version-1 version-2 version-10
Undesired, lexicographic ordering:
version-1 version-10 version-2
| Modifier and Type | Field and Description |
|---|---|
| public static final FilenameComparator | |
| private static final Pattern |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public final int | compare(String
the first object to be compared. o1, String the second object to be compared. o2)Implements java. |
| INSTANCE | back to summary |
|---|---|
| public static final FilenameComparator INSTANCE | |
| NUMBERS | back to summary |
|---|---|
| private static final Pattern NUMBERS | |
| FilenameComparator | back to summary |
|---|---|
| pack-priv FilenameComparator() | |
| compare | back to summary |
|---|---|
| public final int compare(String o1, String 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 | |