io.virtdata.int_int.CycleRange Maven / Gradle / Ivy
package io.virtdata.int_int;
import java.util.function.IntUnaryOperator;
public class CycleRange implements IntUnaryOperator {
private final int minValue;
private final int width;
public CycleRange(int maxValue) {
this(0,maxValue);
}
public CycleRange(int minValue, int maxValue) {
this.minValue = minValue;
if (maxValue