Package csw.params.core.generics
Class GChoiceKey
- java.lang.Object
-
- csw.params.core.generics.Key<Choice>
-
- csw.params.core.generics.GChoiceKey
-
- All Implemented Interfaces:
java.io.Serializable
,scala.Equals
,scala.Product
public class GChoiceKey extends Key<Choice>
A key for a choice item similar to an enumerationparam: name the name of the key param: keyType reference to an object of type KeyType[Choice] param: choices the available choices, the values set must be in the choices
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description GChoiceKey(java.lang.String name, KeyType<Choice> keyType, Units units, Choices choices)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Choices
choices()
Parameter<Choice>
set(Choice value, scala.collection.immutable.Seq<Choice> values)
Sets the values for the key using a variable number of arguments-
Methods inherited from class csw.params.core.generics.Key
equals, hashCode, keyName, keyType, set, setAll, toString, units
-
-
-
-
Method Detail
-
choices
public Choices choices()
-
-