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
A slice of a finger tree, used as internal representation
for
FingerTree.slice(long, long).- Author:
- BaseX Team 2005-21, BSD License, Leo Woerteler
-
Method Summary
-
Method Details
-
isTree
public boolean isTree()Checks if this slice contains a full finger tree.- Returns:
trueif this slice contains a full tree,falseif it contains a partial node
-
getTree
Getter for a contained full tree, should only be called ifisTree()returnstrue.- Returns:
- the contained tree
-
getPartial
Getter for a contained partial node, should only be called ifisTree()returnsfalse.- Returns:
- the contained partial node
-