Constraint

interface Constraint

Known direct subclasses
BitmapConstraint

Represents constraints on a bitmap.

BooleanConstraint

Constrains a field to boolean values.

ByteConstraint
EnumConstraint

Represents possible values a field can take.

ListConstraint

Represents constraints on elements of a list.

NumberRangeConstraint

Represents a range of numbers.

NumberSetConstraint

Represents a set of numbers.

StringConstraint

Represents string constraints, including constraints on length, and specific allowed and disallowed values.

StructConstraint

Represents constraints on individual fields of a struct.


Constraints on a trait attribute, command parameter, or event field. Represents the possible values that an attribute, parameter, or field can have.