IntProperty - xgouchet/Elmyr GitHub Wiki
class IntProperty : ForgeryProperty<Int>
This class implements a ReadOnlyProperty, forging a random int within a given range.
Parameters
min - the minimum value (inclusive), default = Int#MIN_VALUE
max - the maximum value (exclusive), default = Int#MAX_VALUE
Constructors
<init>
IntProperty(min: Int= Int.MIN_VALUE, max:Int = Int.MAX_VALUE)
This class implements a ReadOnlyProperty, forging a random int within a given range.
Parameters
min - the minimum value (inclusive), default = Int#MIN_VALUE
max - the maximum value (exclusive), default = Int#MAX_VALUE
Functions
getForgery
fun getForgery(forge: Forge): Int
Inheritdoc
Companion Object Functions
intForgery
fun intForgery(min: Int= Int.MIN_VALUE, max:Int= Int.MAX_VALUE):ForgeryProperty<Int>
Creates a ReadOnlyProperty that will forge a random int within the given range.
Parameters
min - the minimum value (inclusive), default = Int#MIN_VALUE
max - the maximum value (exclusive), default = Int#MAX_VALUE