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

eu.interedition.collatex.suffixarray.SuffixData Maven / Gradle / Ivy

Go to download

A Java library for collating textual sources, for example, to produce an apparatus.

There is a newer version: 1.7.1
Show newest version
package eu.interedition.collatex.suffixarray;

/**
 * A holder structure for a suffix array and longest common prefix array of
 * a given sequence.
 *
 * @author Michał Nowak (Carrot Search)
 * @author Dawid Weiss (Carrot Search)
 */
public final class SuffixData {
    private final int[] suffixArray;
    private final int[] lcp;

    SuffixData(int[] sa, int[] lcp) {
        this.suffixArray = sa;
        this.lcp = lcp;
    }

    public int[] getSuffixArray() {
        return suffixArray;
    }

    public int[] getLCP() {
        return lcp;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy