NumberRangeConstraint

class NumberRangeConstraint<T : Number> : Constraint


Represents a range of numbers.

Summary

Public constructors

<T : Number> NumberRangeConstraint(
    lowerBound: T,
    upperBound: T,
    step: T,
    unit: ConstraintUnit?
)

Create a NumberRangeConstraint instance.

Public properties

T

The lower bound of this number range.

T

The mathematical difference or distance between each member of the number range.

ConstraintUnit?

The measurement unit associated with the number range.

T

Public constructors

NumberRangeConstraint

<T : Number> NumberRangeConstraint(
    lowerBound: T,
    upperBound: T,
    step: T,
    unit: ConstraintUnit?
)

Create a NumberRangeConstraint instance.

Public properties

lowerBound

val lowerBound: T

The lower bound of this number range.

step

val step: T

The mathematical difference or distance between each member of the number range.

unit

val unitConstraintUnit?

The measurement unit associated with the number range.

upperBound

val upperBound: T