NumberSetConstraint

class NumberSetConstraint<T : Number> : Constraint


Represents a set of numbers.

Summary

Public constructors

<T : Number> NumberSetConstraint(allowedSet: Set<T>, unit: ConstraintUnit?)

Create a NumberSetConstraint instance.

Public properties

Set<T>

The allowed values.

ConstraintUnit?

The measurement unit associated with the number set.

Public constructors

NumberSetConstraint

<T : Number> NumberSetConstraint(allowedSet: Set<T>, unit: ConstraintUnit?)

Create a NumberSetConstraint instance.

Public properties

allowedSet

val allowedSetSet<T>

The allowed values.

unit

val unitConstraintUnit?

The measurement unit associated with the number set.