Package csw.params.core.generics
Class Key<S>
java.lang.Object
csw.params.core.generics.Key<S>
- All Implemented Interfaces:
Serializable
,scala.Equals
,scala.Product
- Direct Known Subclasses:
GChoiceKey
A generic Key class. Never meant to be instantiated directly.
KeyType
exposes
allowed types of Keys and make method to create instances of Key.
param: keyName the name of the key param: keyType reference to an object of type KeyType[S] param: units applicable units
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Equals this Key instance with other by the keyNameint
hashCode()
keyName()
keyType()
Sets the values for the key using a variable number of argumentsSets the values for the key using a variable number of argumentsSet values against this keytoString()
Returns a string representation of Key as keyNameunits()
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface scala.Equals
canEqual
Methods inherited from interface scala.Product
productArity, productElement, productElementName, productElementNames, productIterator, productPrefix
-
Constructor Details
-
Key
-
-
Method Details
-
set
Sets the values for the key using a variable number of arguments- Parameters:
values
- one or more values- Returns:
- an instance of Parameter[S] containing the key name, values (call withUnits() on the result to set the units)
-
keyName
-
keyType
-
units
-
setAll
Set values against this key- Parameters:
values
- an Array of values- Returns:
- an instance of Parameter[S] containing the key name, values (call withUnits() on the result to set the units)
-
set
Sets the values for the key using a variable number of arguments- Parameters:
values
- one or more values- Returns:
- an instance of Parameter[S] containing the key name, values (call withUnits() on the result to set the units)
-
toString
Returns a string representation of Key as keyName -
equals
Equals this Key instance with other by the keyName -
hashCode
public int hashCode()
-