public final class JkPathTreeSet
extends java.lang.Object
JkPathTree
.Modifier and Type | Method and Description |
---|---|
JkPathTreeSet |
and(JkPathTree... trees)
Creates a
JkPathTreeSet which is a concatenation of this
JkPathTreeSet and the JkPathTree array passed as
parameter. |
JkPathTreeSet |
and(JkPathTreeSet... otherDirSets)
Creates a
JkPathTreeSet which is a concatenation of this
JkPathTreeSet and the JkPathTreeSet array passed as
parameter. |
JkPathTreeSet |
and(java.nio.file.Path... folders)
Creates a
JkPathTreeSet which is a concatenation of this
JkPathTreeSet and the folder array passed as parameter. |
JkPathTreeSet |
andAccept(java.lang.Iterable<java.lang.String> globPatterns) |
JkPathTreeSet |
andMatcher(java.nio.file.PathMatcher matcher)
|
JkPathTreeSet |
andZip(java.nio.file.Path... zips) |
JkPathTreeSet |
andZips(java.lang.Iterable<java.nio.file.Path> zipFiles)
Creates a
JkPathTreeSet which is a concatenation of this
JkPathTreeSet and zip files passed as parameter. |
int |
count(int max,
boolean includeFolder)
|
boolean |
equals(java.lang.Object obj) |
java.util.List<java.nio.file.Path> |
getFiles()
Returns a concatenation of
getFiles() for all trees involved in this set. |
java.util.List<JkPathTree> |
getPathTrees()
Returns
JkPathTree instances constituting this JkPathTreeSet . |
java.util.List<java.nio.file.Path> |
getRelativeFiles()
Returns a concatenation of
getRelativeFiles() ()} for all trees involved in this set. |
java.util.List<java.nio.file.Path> |
getRootDirsOrZipFiles()
Returns root dir or zip file for each
JkPathTree tree involved in this
JkPathTreeSet . |
int |
hashCode() |
boolean |
hasNoExistingRoot()
Returns
true if no tree of this set has an existing baseTree. |
static JkPathTreeSet |
of(java.lang.Iterable<JkPathTree> dirs)
Creates a
JkPathTreeSet from an iterable of JkPathTree . |
static JkPathTreeSet |
of(JkPathTree... trees)
Creates a
JkPathTreeSet to an array of JkPathTree . |
static JkPathTreeSet |
of(java.nio.file.Path... folders)
Creates a
JkPathTreeSet from an array of folder. |
static JkPathTreeSet |
ofEmpty()
Creates an empty
JkPathTreeSet . |
JkPathTreeSet |
resolve(java.nio.file.Path path) |
java.lang.String |
toString() |
JkPathTreeSet |
withMatcher(java.nio.file.PathMatcher matcher)
Creates a
JkPathTree which is a copy of this JkPathTree
replacing matcher by the specified one. |
JkPathTreeSet |
zipTo(java.nio.file.Path dir)
Zips the content of all trees involved in this set.
|
public static final JkPathTreeSet of(java.lang.Iterable<JkPathTree> dirs)
JkPathTreeSet
from an iterable of JkPathTree
.public static final JkPathTreeSet ofEmpty()
JkPathTreeSet
.public static final JkPathTreeSet of(JkPathTree... trees)
JkPathTreeSet
to an array of JkPathTree
.public static final JkPathTreeSet of(java.nio.file.Path... folders)
JkPathTreeSet
from an array of folder.public final JkPathTreeSet and(JkPathTree... trees)
JkPathTreeSet
which is a concatenation of this
JkPathTreeSet
and the JkPathTree
array passed as
parameter.public final JkPathTreeSet andZips(java.lang.Iterable<java.nio.file.Path> zipFiles)
JkPathTreeSet
which is a concatenation of this
JkPathTreeSet
and zip files passed as parameter.public final JkPathTreeSet andZip(java.nio.file.Path... zips)
andZips(Iterable)
public final JkPathTreeSet and(java.nio.file.Path... folders)
JkPathTreeSet
which is a concatenation of this
JkPathTreeSet
and the folder array passed as parameter.public final JkPathTreeSet and(JkPathTreeSet... otherDirSets)
JkPathTreeSet
which is a concatenation of this
JkPathTreeSet
and the JkPathTreeSet
array passed as
parameter.public JkPathTreeSet andAccept(java.lang.Iterable<java.lang.String> globPatterns)
public JkPathTreeSet andMatcher(java.nio.file.PathMatcher matcher)
public JkPathTreeSet withMatcher(java.nio.file.PathMatcher matcher)
JkPathTree
which is a copy of this JkPathTree
replacing matcher by the specified one.public java.util.List<java.nio.file.Path> getFiles()
getFiles()
for all trees involved in this set.public java.util.List<java.nio.file.Path> getRelativeFiles()
getRelativeFiles()
()} for all trees involved in this set.public JkPathTreeSet zipTo(java.nio.file.Path dir)
public java.util.List<JkPathTree> getPathTrees()
JkPathTree
instances constituting this JkPathTreeSet
.public java.util.List<java.nio.file.Path> getRootDirsOrZipFiles()
JkPathTree
tree involved in this
JkPathTreeSet
.public boolean hasNoExistingRoot()
true
if no tree of this set has an existing baseTree.public int count(int max, boolean includeFolder)
public JkPathTreeSet resolve(java.nio.file.Path path)
public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object