class ChooserConstraint extends ValueConstraint
- Source
- ChooserConstraint.scala
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- ChooserConstraint
- ValueConstraint
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Instance Constructors
- new ChooserConstraint(_acceptedValues: LogoList = LogoList(), defaultIndex: Int = 0)
Value Members
- def acceptedValues(vals: LogoList): Unit
- def acceptedValues: LogoList
-
def
assertConstraint(value: AnyRef): Unit
Throws a Violation condition if the input is not acceptable.
Throws a Violation condition if the input is not acceptable.
- Definition Classes
- ChooserConstraint → ValueConstraint
- Annotations
- @throws( classOf[ValueConstraint.Violation] )
-
def
coerceValue(value: AnyRef): AnyRef
Returns the constrained value, which can differ from the input.
Returns the constrained value, which can differ from the input. Throws a Violation condition if the input is not coercable.
- Definition Classes
- ChooserConstraint → ValueConstraint
- var defaultIndex: Int
-
def
defaultValue: AnyRef
Returns the default value for this constraint.
Returns the default value for this constraint.
- Definition Classes
- ChooserConstraint → ValueConstraint
- def indexForValue(value: AnyRef): Int