dev.marksman.kraftwerk.util.Labeling Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of kraftwerk Show documentation
Show all versions of kraftwerk Show documentation
Purely functional random data generation
The newest version!
package dev.marksman.kraftwerk.util;
public final class Labeling {
private Labeling() {
}
public static String intInterval(int min, int max, boolean exclusive) {
return interval("int", min, max, exclusive);
}
public static String longInterval(long min, long max, boolean exclusive) {
return interval("long", min, max, exclusive);
}
public static String interval(String label, long min, long max, boolean exclusive) {
return label + " [" + min + ", " + max + (exclusive ? ")" : "]");
}
}