Package eu.bandm.tools.location
Interface LocationTree.Node<D,T>
- Type Parameters:
D- the type of document identifiersT- the type of subjects
- Enclosing class:
LocationTree<D,T>
public static interface LocationTree.Node<D,T>
Interface of local tree nodes. Proper subtrees are placed at local
leaves.
-
Method Summary
Modifier and TypeMethodDescriptiondefault Map<String, ? extends LocationTree.Node<D, T>> children()Returns the map of labels to local children for this node.default @Opt LocationTree<D, T> Returns the proper subtree for this node, if available.booleanisEmpty()Checks whether this node represents an empty tree.
-
Method Details
-
isEmpty
boolean isEmpty()Checks whether this node represents an empty tree.- Returns:
trueif this node has neither proper subtrees nor local children;falseotherwise
-
getProperSubtree
Returns the proper subtree for this node, if available.- Returns:
- the proper subtree for this node, or
nullif unavailable
-
children
Returns the map of labels to local children for this node.- Returns:
- an unmodifiable map of labels to local children for this node
-