Package aQute.lib.hierarchy
Class Hierarchy.RootNode
java.lang.Object
aQute.lib.hierarchy.Hierarchy.Node
aQute.lib.hierarchy.Hierarchy.Folder
aQute.lib.hierarchy.Hierarchy.RootNode
- All Implemented Interfaces:
FolderNode,NamedNode,Comparable<NamedNode>,Iterable<NamedNode>
- Enclosing class:
Hierarchy
-
Field Summary
FieldsFields inherited from class aQute.lib.hierarchy.Hierarchy.Folder
childrenFields inherited from class aQute.lib.hierarchy.Hierarchy.Node
name, parent -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) voidgetPath(StringBuilder app) Optional<? extends Hierarchy.Folder> parent()Return the parent of this node.root()Answer the root nodeMethods inherited from class aQute.lib.hierarchy.Hierarchy.Folder
children, find, get, indexOf, indexOf, iterator, size, toStringMethods inherited from class aQute.lib.hierarchy.Hierarchy.Node
compareTo, find, name, pathMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Comparable
compareToMethods inherited from interface aQute.lib.hierarchy.FolderNode
names, streamMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
size
final int size
-
-
Constructor Details
-
RootNode
-
RootNode
-
-
Method Details
-
getPath
- Overrides:
getPathin classHierarchy.Folder
-
root
Description copied from interface:NamedNodeAnswer the root node- Specified by:
rootin interfaceNamedNode- Overrides:
rootin classHierarchy.Node
-
parent
Description copied from interface:NamedNodeReturn the parent of this node. Only the root will return an emptyOptional. Each hierarchy has a single root.- Specified by:
parentin interfaceNamedNode- Overrides:
parentin classHierarchy.Node- Returns:
- the parent or an empty
Optionalin the case of the root node.
-