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

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

package eu.interedition.collatex.suffixarray;

/**
 * Holder for minimum and maximum.
 *
 * @author Michał Nowak (Carrot Search)
 * @author Dawid Weiss (Carrot Search)
 * @see Tools#minmax(int[], int, int)
 */
final class MinMax {
    public final int min;
    public final int max;

    MinMax(int min, int max) {
        this.min = min;
        this.max = max;
    }

    public int range() {
        return max - min;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy