TrueZIP File* 7.0

de.schlichtherle.truezip.file
Class TFileComparator

java.lang.Object
  extended by 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
           
 
Constructor Summary
TFileComparator()
           
 
Method Summary
 int compare(File f1, File f2)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Comparator
equals
 

Field Detail

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.

Constructor Detail

TFileComparator

public TFileComparator()
Method Detail

compare

public int compare(File f1,
                   File f2)
Specified by:
compare in interface Comparator<File>

TrueZIP File* 7.0

Copyright © 2005-2011 Schlichtherle IT Services. All Rights Reserved.