java.lang.Object
net.i2p.servlet.I2PDefaultServlet.FileComparator
- All Implemented Interfaces:
Comparator<String>
- Enclosing class:
I2PDefaultServlet
Compares files in directory listing, directories before files.
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ResourceThe directory whose contents are compared.private final Comparator<Object> Order to apply to the file names.Constructor Summary
ConstructorsMethod Summary
All MethodsMethods inherited from class Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Comparator
equals, max, min, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
Field Details
_coll
Order to apply to the file names._base
The directory whose contents are compared.
Constructor Details
FileComparator
Compares files against the base resource.- Parameters:
base- the resource base for resolving file entries
Method Details
compare
Compare two file or directory names, directories first.- Specified by:
comparein interfaceComparator<String>