public class PatternComparatorConsideringPath extends java.lang.Object implements java.util.Comparator<PathPattern>
PathPatternComparator
but this takes account of a specified path and
sorts anything that exactly matches it to be first.Modifier and Type | Field and Description |
---|---|
private java.lang.String |
path |
Constructor and Description |
---|
PatternComparatorConsideringPath(java.lang.String path) |
Modifier and Type | Method and Description |
---|---|
int |
compare(PathPattern o1,
PathPattern o2) |
public PatternComparatorConsideringPath(java.lang.String path)
public int compare(PathPattern o1, PathPattern o2)
compare
in interface java.util.Comparator<PathPattern>