Package aQute.lib.hierarchy
Class Hierarchy
java.lang.Object
aQute.lib.hierarchy.Hierarchy
- Direct Known Subclasses:
JarIndex
A general hierarchy of named nodes. Can be accessed fast via a path or
iterative.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static class
(package private) static class
(package private) static class
(package private) static class
(package private) static class
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionasMap()
Find a node in the hierarchy.findFolder
(String path) Find a folderfindFolder
(String[] parts) iterator()
protected Object
int
size()
stream()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
root
-
-
Constructor Details
-
Hierarchy
-
-
Method Details
-
findFolder
Find a folder- Parameters:
path
- the name of the folder. Can end in '/' or not- Returns:
- a folder node
-
findFolder
-
find
Find a node in the hierarchy.- Parameters:
path
- a '/' separated path. May start and end with superfluous '/'- Returns:
- a node or
Optional.empty()
if not found
-
iterator
-
payload
-
asMap
-
size
public int size() -
stream
-
find
-