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(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(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.lang.String |
toString() |
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)
strings
- The array of stringspublic Path matches(java.lang.String otherPath)
otherPath
- The path to matchnull
otherwise.Path.matches(String)
public PathSet getSubset(java.lang.String path)
path
- The base pathpublic PathSet getSubset(Path path)
path
- The base pathpublic PathSet getSubset(PathSet set)
set
- The base path setpublic 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
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2010 - 2020 Adobe. All Rights Reserved