DoubleForgery - xgouchet/Elmyr GitHub Wiki
@Target([AnnotationTarget.VALUE_PARAMETER, AnnotationTarget.FIELD, AnnotationTarget.PROPERTY]) annotation class DoubleForgery
Mark a field, property or method parameter as a primitive double forgery.
You can only specify the min
and max
parameters, or the mean
and standardDeviation
parameters.
Parameters
min
- the minimum value (inclusive), default = -Double.MAX_VALUE
max
- the maximum value (exclusive), default = Double.MAX_VALUE
mean
- the mean value of the distribution
standardDeviation
- the standard deviation value of the distribution
Constructors
<init>
DoubleForgery(min:
Double
= -java.lang.Double.MAX_VALUE, max:
Double
= java.lang.Double.MAX_VALUE, mean:
Double
= 0.0, standardDeviation:
Double
= java.lang.Double.NaN)
Mark a field, property or method parameter as a primitive double forgery.
You can only specify the min
and max
parameters, or the mean
and standardDeviation
parameters.
Parameters
min
- the minimum value (inclusive), default = -Double.MAX_VALUE
max
- the maximum value (exclusive), default = Double.MAX_VALUE
mean
- the mean value of the distribution
standardDeviation
- the standard deviation value of the distribution
Properties
max
val max:
Double
the maximum value (exclusive), default = Double.MAX_VALUE
mean
val mean:
Double
the mean value of the distribution
min
val min:
Double
the minimum value (inclusive), default = -Double.MAX_VALUE
standardDeviation
val standardDeviation:
Double
the standard deviation value of the distribution