public final class FileComparator extends Object implements Comparator<File>
Desired semantic ordering:
version-1 version-2 version-10
Undesired, lexicographic ordering:
version-1 version-10 version-2
| Modifier and Type | Field and Description |
|---|---|
static FileComparator |
INSTANCE |
| Constructor and Description |
|---|
FileComparator() |
| Modifier and Type | Method and Description |
|---|---|
int |
compare(File o1,
File o2) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcomparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLongpublic static final FileComparator INSTANCE
public final int compare(File o1, File o2)
compare in interface Comparator<File>Copyright © 2019. All rights reserved.