java.lang.Object
org.gjt.sp.jedit.io.VFS.DirectoryEntryCompare
- All Implemented Interfaces:
Comparator<VFSFile>
- Enclosing class:
- VFS
Implementation of
Comparator
interface that compares VFSFile
instances.- Since:
- jEdit 4.2pre1
-
Constructor Summary
ConstructorDescriptionDirectoryEntryCompare
(boolean sortMixFilesAndDirs, boolean sortIgnoreCase) Creates a newDirectoryEntryCompare
. -
Method Summary
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, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Constructor Details
-
DirectoryEntryCompare
public DirectoryEntryCompare(boolean sortMixFilesAndDirs, boolean sortIgnoreCase) Creates a newDirectoryEntryCompare
.- Parameters:
sortMixFilesAndDirs
- If false, directories are put at the top of the listing.sortIgnoreCase
- If false, upper case comes before lower case.
-
-
Method Details
-
compare
- Specified by:
compare
in interfaceComparator<VFSFile>
-