public static class FileUtil.FileTimeComparator
extends java.lang.Object
implements java.util.Comparator<java.io.File>
FileTimeComparator
class allows comparing 'last modified' time in 2 given
File
objects.Constructor and Description |
---|
FileUtil.FileTimeComparator() |
public int compare(java.io.File o1, java.io.File o2) throws java.lang.ClassCastException
compare
in interface java.util.Comparator<java.io.File>
java.lang.ClassCastException
- if the arguments' types prevent them from being compared by this
Comparator
.public boolean equals(java.lang.Object obj)
equals
in interface java.util.Comparator<java.io.File>
equals
in class java.lang.Object
obj
- 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 © 2006–2014 The Apache Software Foundation. All rights reserved.