public class FileComparator extends Object implements Comparator<File>
Modifier and Type | Field and Description |
---|---|
static int |
LASTMODIFIED |
static int |
NAME |
static int |
SIZE |
Constructor and Description |
---|
FileComparator(int inSortType,
boolean inAscending) |
Modifier and Type | Method and Description |
---|---|
int |
compare(File file1,
File file2)
compare two array of Comparable
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
comparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
public static final int NAME
public static final int LASTMODIFIED
public static final int SIZE
public int compare(File file1, File file2)
compare
in interface Comparator<File>
Copyright © 2012-2018. All Rights Reserved.