Modifier and Type | Field and Description |
---|---|
static PathSet |
EMPTY_SET
Empty path set.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
static PathSet |
fromPathCollection(java.util.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(java.util.Collection<java.lang.String> paths)
Create a path set from a collection of strings
|
static PathSet |
fromStrings(java.lang.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(java.lang.String path)
Generate a path set of paths from this set which
are in the sub tree of the provided path
|
int |
hashCode() |
java.util.Iterator<Path> |
iterator()
Return an unmodifiable iterator for the paths.
|
Path |
matches(java.lang.String otherPath)
Check whether the provided path is in the sub tree of any
of the paths in this set.
|
java.util.Set<java.lang.String> |
toStringSet()
Create a unmodifiable set of strings
|
public static final PathSet EMPTY_SET
public static PathSet fromPathCollection(java.util.Collection<Path> paths)
paths
- The collection of path objectspublic static PathSet fromPaths(Path... paths)
paths
- The collection of path objectspublic static PathSet fromStringCollection(java.util.Collection<java.lang.String> paths)
paths
- The collection of stringspublic static PathSet fromStrings(java.lang.String... strings)
paths
- The collection of stringspublic Path matches(java.lang.String otherPath)
otherPath
- null
otherwise.Path#matches(String)}
public PathSet getSubset(java.lang.String path)
path
- The base pathpublic PathSet getSubset(Path path)
path
- The base pathpublic java.util.Set<java.lang.String> toStringSet()
public java.util.Iterator<Path> iterator()
iterator
in interface java.lang.Iterable<Path>
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
"Copyright © 2010 - 2018 Adobe Systems Incorporated. All Rights Reserved"