eu.interedition.collatex.suffixarray.MinMax Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of collatex-core Show documentation
Show all versions of collatex-core Show documentation
A Java library for collating textual sources, for example, to produce an apparatus.
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;
}
}