Interface LocationTree.Node<D,T>

Type Parameters:
D - the type of document identifiers
T - 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 Type
    Method
    Description
    default Map<String,? extends LocationTree.Node<D,T>>
    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.
    boolean
    Checks whether this node represents an empty tree.
  • Method Details

    • isEmpty

      boolean isEmpty()
      Checks whether this node represents an empty tree.
      Returns:
      true if this node has neither proper subtrees nor local children; false otherwise
    • getProperSubtree

      default @Opt LocationTree<D,T> getProperSubtree()
      Returns the proper subtree for this node, if available.
      Returns:
      the proper subtree for this node, or null if unavailable
    • children

      default Map<String,? extends LocationTree.Node<D,T>> children()
      Returns the map of labels to local children for this node.
      Returns:
      an unmodifiable map of labels to local children for this node