Class TreeSlice<N,​E>

  • Type Parameters:
    N - node type
    E - element type

    public final class TreeSlice<N,​E>
    extends Object
    A slice of a finger tree, used as internal representation for FingerTree.slice(long, long).
    Author:
    BaseX Team 2005-22, BSD License, Leo Woerteler
    • Method Detail

      • isTree

        public boolean isTree()
        Checks if this slice contains a full finger tree.
        Returns:
        true if this slice contains a full tree, false if it contains a partial node
      • getTree

        public FingerTree<N,​E> getTree()
        Getter for a contained full tree, should only be called if isTree() returns true.
        Returns:
        the contained tree
      • getPartial

        public NodeLike<N,​E> getPartial()
        Getter for a contained partial node, should only be called if isTree() returns false.
        Returns:
        the contained partial node