Package io.quarkus.paths
Class CachingPathTree
- java.lang.Object
-
- io.quarkus.paths.CachingPathTree
-
- All Implemented Interfaces:
OpenPathTree
,PathTree
,Closeable
,AutoCloseable
public class CachingPathTree extends Object implements OpenPathTree
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(String relativePath, Consumer<PathVisit> func)
<T> T
apply(String relativePath, Function<PathVisit,T> func)
void
close()
boolean
contains(String relativePath)
boolean
equals(Object obj)
Manifest
getManifest()
PathTree
getOriginalTree()
Path
getPath(String relativePath)
Collection<Path>
getRoots()
int
hashCode()
boolean
isOpen()
static CachingPathTree
of(PathTree pathTree)
OpenPathTree
open()
void
walk(PathVisitor visitor)
-
-
-
Method Detail
-
of
public static CachingPathTree of(PathTree pathTree)
-
getRoots
public Collection<Path> getRoots()
-
getManifest
public Manifest getManifest()
- Specified by:
getManifest
in interfacePathTree
-
walk
public void walk(PathVisitor visitor)
-
getPath
public Path getPath(String relativePath)
- Specified by:
getPath
in interfaceOpenPathTree
-
open
public OpenPathTree open()
-
isOpen
public boolean isOpen()
- Specified by:
isOpen
in interfaceOpenPathTree
-
close
public void close() throws IOException
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-
getOriginalTree
public PathTree getOriginalTree()
- Specified by:
getOriginalTree
in interfaceOpenPathTree
-
-