Interface Node<E>

    • Method Detail

      • children

        java.util.Iterator<IndexTreePath<E>> children​(IndexTreePath<E> parentPath)
        Returns an enumeration of the children paths of this node.
        Parameters:
        parentPath - the path to this node
        Returns:
        an enumeration of the children paths of this node
      • getNumEntries

        int getNumEntries()
        Returns the number of entries of this node.
        Returns:
        the number of entries of this node
      • isLeaf

        boolean isLeaf()
        Returns true if this node is a leaf node, false otherwise.
        Returns:
        true if this node is a leaf node, false otherwise
      • getEntry

        E getEntry​(int index)
        Returns the entry at the specified index.
        Parameters:
        index - the index of the entry to be returned
        Returns:
        the entry at the specified index
      • addEntry

        int addEntry​(E entry)
        Adds a new entry to this node's children and returns the index of the entry in the children array. An IllegalStateException will be thrown when inserting leaf entries into directory nodes or conversely.
        Parameters:
        entry - the entry to be added
        Returns:
        the index of the entry in this node's children array
        Throws:
        java.lang.IllegalStateException - when inserting leaf entries into non-leaf nodes or conversely