Package org.onosproject.store.service
Interface DocumentTreeNode<V>
-
- Type Parameters:
V- value type
@NotThreadSafe public interface DocumentTreeNode<V>ADocumentTreenode.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description DocumentTreeNode<V>child(java.lang.String relativePath)Returns the child node of this node with the specified relative path name.java.util.Iterator<DocumentTreeNode<V>>children()Returns the children of this node.default booleanhasChildren()Returns if this node has one or more children.DocumentPathpath()Returns the path to this node in aDocumentTree.Versioned<V>value()Returns the value of this node.
-
-
-
Method Detail
-
path
DocumentPath path()
Returns the path to this node in aDocumentTree.- Returns:
- absolute path
-
children
java.util.Iterator<DocumentTreeNode<V>> children()
Returns the children of this node.- Returns:
- iterator for this node's children
-
child
DocumentTreeNode<V> child(java.lang.String relativePath)
Returns the child node of this node with the specified relative path name.- Parameters:
relativePath- relative path name for the child node.- Returns:
- child node; this method returns
nullif no such child exists
-
hasChildren
default boolean hasChildren()
Returns if this node has one or more children.- Returns:
trueif yes,falseotherwise
-
-