SpecificRestriction constructor

SpecificRestriction(
  1. RestrictionType type,
  2. IntegerRange value
)

Creates a new instance.

  • type Type of restriction.
  • value Values for which the restriction applies. Examples:
  • (min, max) → Restriction applies for all values between min and max inclusive.
  • (n, n) → Restriction applies to an exact value.
  • (n, 0) or (n, null) → Restriction applies for values greater than or equal to min (unbounded upper limit).

Implementation

SpecificRestriction(this.type, this.value);