Skip to content

LongProperty

Xavier Gouchet edited this page Feb 17, 2020 · 1 revision

class LongProperty : ForgeryProperty<Long>

This class implements a ReadOnlyProperty, forging a random long within a given range.

Parameters

min - the minimum value (inclusive), default = Long#MIN_VALUE

max - the maximum value (exclusive), default = Long#MAX_VALUE

Constructors

<init>

LongProperty(min: Long= Long.MIN_VALUE, max:Long = Long.MAX_VALUE)

This class implements a ReadOnlyProperty, forging a random long within a given range.

Parameters

min - the minimum value (inclusive), default = Long#MIN_VALUE

max - the maximum value (exclusive), default = Long#MAX_VALUE

Functions

getForgery

fun getForgery(forge: Forge): Long

Inheritdoc

Companion Object Functions

longForgery

fun longForgery(min: Long= Long.MIN_VALUE, max:Long= Long.MAX_VALUE):ForgeryProperty<Long>

Creates a ReadOnlyProperty that will forge a random long within the given range.

Parameters

min - the minimum value (inclusive), default = Long#MIN_VALUE

max - the maximum value (exclusive), default = Long#MAX_VALUE