public class ParamValidators
extends java.lang.Object
Param.isValid
.
The numerical methods only support Int, Long, Float, and Double.Constructor and Description |
---|
ParamValidators() |
Modifier and Type | Method and Description |
---|---|
static <T> scala.Function1<java.lang.Object,java.lang.Object> |
arrayLengthGt(double lowerBound)
Check that the array length is greater than lowerBound.
|
static <T> scala.Function1<T,java.lang.Object> |
gt(double lowerBound)
Check if value > lowerBound
|
static <T> scala.Function1<T,java.lang.Object> |
gtEq(double lowerBound)
Check if value >= lowerBound
|
static <T> scala.Function1<T,java.lang.Object> |
inArray(java.util.List<T> allowed)
Check for value in an allowed set of values.
|
static <T> scala.Function1<T,java.lang.Object> |
inArray(java.lang.Object allowed)
Check for value in an allowed set of values.
|
static <T> scala.Function1<T,java.lang.Object> |
inRange(double lowerBound,
double upperBound)
Version of
inRange() which uses inclusive be default: [lowerBound, upperBound] |
static <T> scala.Function1<T,java.lang.Object> |
inRange(double lowerBound,
double upperBound,
boolean lowerInclusive,
boolean upperInclusive)
Check for value in range lowerBound to upperBound.
|
static <T> scala.Function1<T,java.lang.Object> |
lt(double upperBound)
Check if value < upperBound
|
static <T> scala.Function1<T,java.lang.Object> |
ltEq(double upperBound)
Check if value <= upperBound
|
public static <T> scala.Function1<T,java.lang.Object> gt(double lowerBound)
public static <T> scala.Function1<T,java.lang.Object> gtEq(double lowerBound)
public static <T> scala.Function1<T,java.lang.Object> lt(double upperBound)
public static <T> scala.Function1<T,java.lang.Object> ltEq(double upperBound)
public static <T> scala.Function1<T,java.lang.Object> inRange(double lowerBound, double upperBound, boolean lowerInclusive, boolean upperInclusive)
lowerInclusive
- If true, check for value >= lowerBound.
If false, check for value > lowerBound.upperInclusive
- If true, check for value <= upperBound.
If false, check for value < upperBound.lowerBound
- (undocumented)upperBound
- (undocumented)public static <T> scala.Function1<T,java.lang.Object> inRange(double lowerBound, double upperBound)
inRange()
which uses inclusive be default: [lowerBound, upperBound]public static <T> scala.Function1<T,java.lang.Object> inArray(java.lang.Object allowed)
public static <T> scala.Function1<T,java.lang.Object> inArray(java.util.List<T> allowed)
public static <T> scala.Function1<java.lang.Object,java.lang.Object> arrayLengthGt(double lowerBound)