Comparator<String>public class PathComparator extends Object implements Comparator<String>
"/foo/bar/9/wow"
"/foo/bar/1000/wow"
| Constructor | Description |
|---|---|
PathComparator(char aDelimiter) |
Constructs the
PathComparator with the given path delimiter. |
PathComparator(char aDelimiter,
PathSortStrategy aPathSortStrategy) |
Constructs the
PathComparator with the given path delimiter. |
| Modifier and Type | Method | Description |
|---|---|---|
int |
compare(String o1,
String o2) |
comparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLongpublic PathComparator(char aDelimiter)
PathComparator with the given path delimiter.aDelimiter - The path delimiter to use.public PathComparator(char aDelimiter,
PathSortStrategy aPathSortStrategy)
PathComparator with the given path delimiter.aDelimiter - The path delimiter to use.aPathSortStrategy - The PathSortStrategy to use for
comparisons.public int compare(String o1, String o2)
compare in interface Comparator<String>Copyright © 2021. All rights reserved.