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 |
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. |
JkPathTreeSet |
copyTo(java.nio.file.Path dir,
java.nio.file.CopyOption... copyOptions)
Copies the content of all trees involved in this set.
|
int |
count(int max,
boolean includeFolder)
|
boolean |
equals(java.lang.Object obj) |
java.util.List<java.nio.file.Path> |
getExistingFiles(java.lang.String relativePath)
Returns a list of existing files having the specified relative path to its
JkPathTree root. |
java.util.List<java.nio.file.Path> |
getFiles()
Returns a concatenation of
getFiles() for all trees involved in this set. |
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) |
JkPathTreeSet |
resolvedTo(java.nio.file.Path newRoot) |
java.util.List<JkPathTree> |
toList()
Returns
JkPathTree instances constituting this JkPathTreeSet . |
java.lang.String |
toString() |
JkPathTreeSet |
withMatcher(java.nio.file.PathMatcher matcher)
Creates a
JkPathTree which is a copy of this JkPathTreeSet
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 JkPathTreeSet of(java.lang.Iterable<JkPathTree> dirs)
JkPathTreeSet
from an iterable of JkPathTree
.public static JkPathTreeSet ofEmpty()
JkPathTreeSet
.public static JkPathTreeSet of(JkPathTree... trees)
JkPathTreeSet
to an array of JkPathTree
.public static 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 andMatcher(java.nio.file.PathMatcher matcher)
public JkPathTreeSet withMatcher(java.nio.file.PathMatcher matcher)
JkPathTree
which is a copy of this JkPathTreeSet
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 java.util.List<java.nio.file.Path> getExistingFiles(java.lang.String relativePath)
JkPathTree
root.public JkPathTreeSet zipTo(java.nio.file.Path dir)
public JkPathTreeSet copyTo(java.nio.file.Path dir, java.nio.file.CopyOption... copyOptions)
public java.util.List<JkPathTree> toList()
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 JkPathTreeSet resolvedTo(java.nio.file.Path newRoot)
JkPathTree.resolvedTo(Path)
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