Skip to content

FloatForgery

Xavier Gouchet edited this page Dec 13, 2019 · 2 revisions

@Target([AnnotationTarget.VALUE_PARAMETER, AnnotationTarget.FIELD, AnnotationTarget.PROPERTY]) annotation class FloatForgery

Mark a field, property or method parameter as a primitive float forgery. You can only specify the min and max parameters, or the mean and standardDeviation parameters.

Parameters

min - the minimum value (inclusive), default = -Float.MAX_VALUE

max - the maximum value (exclusive), default = Float.MAX_VALUE

mean - the mean value of the distribution

standardDeviation - the standard deviation value of the distribution

Constructors

<init>

FloatForgery(min: Float= -java.lang.Float.MAX_VALUE, max:Float= java.lang.Float.MAX_VALUE, mean:Float= 0f, standardDeviation:Float = java.lang.Float.NaN)

Mark a field, property or method parameter as a primitive float forgery. You can only specify the min and max parameters, or the mean and standardDeviation parameters.

Parameters

min - the minimum value (inclusive), default = -Float.MAX_VALUE

max - the maximum value (exclusive), default = Float.MAX_VALUE

mean - the mean value of the distribution

standardDeviation - the standard deviation value of the distribution

Properties

max

val max: Float

the maximum value (exclusive), default = Float.MAX_VALUE

mean

val mean: Float

the mean value of the distribution

min

val min: Float

the minimum value (inclusive), default = -Float.MAX_VALUE

standardDeviation

val standardDeviation: Float

the standard deviation value of the distribution