Modifier and Type | Field and Description |
---|---|
static PathSet |
EMPTY_SET
Empty path set.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
static PathSet |
fromPathCollection(Collection<Path> paths)
Create a path set from a collection of path objects
|
static PathSet |
fromPaths(Path... paths)
Create a path set from a collection of path objects
|
static PathSet |
fromStringCollection(Collection<String> paths)
Create a path set from a collection of strings
|
static PathSet |
fromStrings(String... strings)
Create a path set from a collection of strings
|
PathSet |
getSubset(Path path)
Generate a path set of paths from this set which
are in the sub tree of the provided path
|
PathSet |
getSubset(PathSet set)
Generate a path set of paths from this set which
are in at least one of the sub tree of the provided path set.
|
PathSet |
getSubset(String path)
Generate a path set of paths from this set which
are in the sub tree of the provided path
|
int |
hashCode() |
Iterator<Path> |
iterator()
Return an unmodifiable iterator for the paths.
|
Path |
matches(String otherPath)
Check whether the provided path is in the sub tree of any
of the paths in this set.
|
String |
toString() |
Set<String> |
toStringSet()
Create a unmodifiable set of strings
|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
forEach, spliterator
public static final PathSet EMPTY_SET
public static PathSet fromPathCollection(Collection<Path> paths)
paths
- The collection of path objectspublic static PathSet fromPaths(Path... paths)
paths
- The collection of path objectspublic static PathSet fromStringCollection(Collection<String> paths)
paths
- The collection of stringspublic static PathSet fromStrings(String... strings)
strings
- The array of stringspublic Path matches(String otherPath)
otherPath
- The path to matchnull
otherwise.Path.matches(String)
public PathSet getSubset(String path)
path
- The base pathpublic PathSet getSubset(Path path)
path
- The base pathpublic PathSet getSubset(PathSet set)
set
- The base path setpublic Set<String> toStringSet()
Copyright © 2017 The Apache Software Foundation. All rights reserved.