
com.vladsch.flexmark.util.sequence.builder.tree.SegmentTreeRange Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of flexmark-util-sequence Show documentation
Show all versions of flexmark-util-sequence Show documentation
flexmark-java sequence utility classes
package com.vladsch.flexmark.util.sequence.builder.tree;
/**
* Class used to extract subSequence information from segment tree
*/
public class SegmentTreeRange {
final public int startIndex;
final public int endIndex;
final public int startOffset;
final public int endOffset;
final public int startPos;
final public int endPos;
final public int length;
public SegmentTreeRange(int startIndex, int endIndex, int startOffset, int endOffset, int startPos, int endPos) {
this.startIndex = startIndex;
this.endIndex = endIndex;
this.startOffset = startOffset;
this.endOffset = endOffset;
this.startPos = startPos;
this.endPos = endPos;
this.length = endIndex - startIndex;
}
@Override
public String toString() {
return "SegmentTreeRange{" +
"startIndex=" + startIndex +
", endIndex=" + endIndex +
", startOffset=" + startOffset +
", endOffset=" + endOffset +
", startPos=" + startPos +
", endPos=" + endPos +
", length=" + length +
'}';
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy