All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.vladsch.flexmark.util.sequence.builder.tree.SegmentTreeRange Maven / Gradle / Ivy

There is a newer version: 0.64.8
Show newest version
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