Package org.basex.query.util.fingertree
Class TreeSlice<N,E>
- java.lang.Object
-
- org.basex.query.util.fingertree.TreeSlice<N,E>
-
- Type Parameters:
N
- node typeE
- element type
public final class TreeSlice<N,E> extends Object
A slice of a finger tree, used as internal representation forFingerTree.slice(long, long)
.- Author:
- BaseX Team 2005-22, BSD License, Leo Woerteler
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NodeLike<N,E>
getPartial()
Getter for a contained partial node, should only be called ifisTree()
returnsfalse
.FingerTree<N,E>
getTree()
Getter for a contained full tree, should only be called ifisTree()
returnstrue
.boolean
isTree()
Checks if this slice contains a full finger tree.
-
-
-
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 ifisTree()
returnstrue
.- Returns:
- the contained tree
-
-