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;
}
}