@ThreadSafe public final class PrefixList extends Object
Constructor and Description |
---|
PrefixList(List<String> prefixList)
Prefix list is used to do file filtering.
|
PrefixList(String prefixes,
String separator)
Prefix list is used to do file filtering.
|
Modifier and Type | Method and Description |
---|---|
com.google.common.collect.ImmutableList<String> |
getList()
Gets the list of prefixes.
|
boolean |
inList(String path)
Checks whether a prefix of
path is in the prefix list. |
boolean |
outList(String path)
Checks whether a prefix of
path is not in the prefix list. |
String |
toString()
Print out all prefixes separated by ";".
|
public PrefixList(List<String> prefixList)
prefixList
- the list of prefixes to createpublic com.google.common.collect.ImmutableList<String> getList()
public boolean inList(String path)
path
is in the prefix list.path
- the path to checkpublic boolean outList(String path)
path
is not in the prefix list.path
- the path to checkCopyright © 2023. All Rights Reserved.