public class ConfigurablePathComparator extends PathComparator
Sort first by the data passed into the configurable comparator, then sort lexicographically by directory structure, then filename
For example:2 - server/demo/a/foo2.txt 1 - client/bootstrap/a/foo1.txt 3 - server/demo/a/b/foo.txt 2 - server/demo/a/foo2.txt 1 - client/bootstrap/a/foo1.txt 3 - server/demo/a/b/foo.txt
Modifier and Type | Class and Description |
---|---|
static class |
ConfigurablePathComparator.Builder |
Modifier and Type | Method and Description |
---|---|
static ConfigurablePathComparator.Builder |
builder() |
protected int |
compare(int index,
String[] tokens1,
String[] tokens2) |
protected boolean |
isLocation(String token) |
protected boolean |
isType(String token) |
compare, compare, getPathTokens, isLastToken, validateCompareArguments
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
equals
protected int compare(int index, String[] tokens1, String[] tokens2)
compare
in class PathComparator
protected boolean isLocation(String token)
public static ConfigurablePathComparator.Builder builder()
Copyright © 2010–2014 The Kuali Foundation. All rights reserved.