de.schlichtherle.truezip.file
Class TFileComparator
java.lang.Object
de.schlichtherle.truezip.file.TFileComparator
- All Implemented Interfaces:
- Serializable, Comparator<File>
public final class TFileComparator
- extends Object
- implements Comparator<File>, Serializable
Compares two files by their status and path name so that directories
are always ordered before other files.
- Author:
- Christian Schlichtherle
- See Also:
- Serialized Form
|
Field Summary |
private static Collator |
COLLATOR
A collator for file names which considers case according to the
platform's standard. |
private static long |
serialVersionUID
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
COLLATOR
private static final Collator COLLATOR
- A collator for file names which considers case according to the
platform's standard.
TFileComparator
public TFileComparator()
compare
public int compare(File f1,
File f2)
- Specified by:
compare in interface Comparator<File>
Copyright © 2005-2011 Schlichtherle IT Services. All Rights Reserved.