Architecture Diagrams for /vsch/flexmark-java[edit]
Packages / Module flexmark-util / com.vladsch.flexmark.util.sequence / SegmentedSequenceTree

class SegmentedSequenceTree

A BasedSequence which consists of segments of other BasedSequences NOTE: very efficient for random access but extremely wasteful with space by allocating 4 bytes per character in the sequence with corresponding construction penalty use SegmentedSequenceTree which is binary tree based segmented sequence with minimal overhead and optimized to give penalty free random access for most applications.
Class fields and methods
class SegmentedSequenceTree
A BasedSequence which consists of segments of other BasedSequences NOTE...
class SegmentedSequenceTree.Cache
constructor Cache(segment,chars,startIndex)
method charAt(index)
method charIndex(index)
constructor SegmentedSequenceTree(baseSeq,startOffset,endOffset,length,segmentTree)
constructor SegmentedSequenceTree(baseSeq,segmentTree,subSequenceRange)
O
method addSegments(builder)
method charAt(index)
S
method create(baseSeq,builder)
method getCache(index)
method getCachedSegment()
O
method getIndexOffset(index)
O
method getSegmentTree()
O
method subSequence(startIndex,endIndex)
Base Constructor