public class FileSystemNodeComparator extends Object implements Comparator<FileSystemNode<?>>
A comparator for nodes at the same level.
Directories have a higher priority than files. Otherwise they are prioritized by their names.
Constructor and Description |
---|
FileSystemNodeComparator()
Creates a comparator.
|
Modifier and Type | Method and Description |
---|---|
int |
compare(FileSystemNode<?> o1,
FileSystemNode<?> o2) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
comparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
public int compare(FileSystemNode<?> o1, FileSystemNode<?> o2)
compare
in interface Comparator<FileSystemNode<?>>
Copyright © 2015–2019. All rights reserved.