public static class FileUtil.FileTimeComparator extends Object implements Comparator<File>
FileTimeComparator class allows comparing 'last modified' time in 2 given
File objects.| Constructor and Description |
|---|
FileUtil.FileTimeComparator() |
public int compare(File o1, File o2) throws ClassCastException
compare in interface Comparator<File>ClassCastException - if the arguments' types prevent them from being compared by this
Comparator.public boolean equals(Object obj)
equals in interface Comparator<File>equals in class Objectobj - The reference object with which to compare.true only if the specified object is also a
FileTimeComparator, and it imposes the same ordering as this
comparator.Copyright © 2015. All rights reserved.