/** * A numeric range that checks both the upper and lower bound */ public static Range between(Number min, Number max) { return new Range(min, max); }
/** * A numeric range that checks only the lower bound * @param min The minimum acceptable value */ public static Range atLeast(Number min) { return new Range(min, null); }
/** * A numeric range that checks only the lower bound * * @param min The minimum acceptable value */ public static Range atLeast(Number min) { return new Range(min, null); }
/** * A numeric range that checks both the upper (inclusive) and lower bound */ public static Range between(Number min, Number max) { return new Range(min, max); }