public class DoubleArrayConfigKey extends ConfigKey<double[]>
Constructor and Description |
---|
DoubleArrayConfigKey(ConfigMeta meta,
double[] dflt)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Specifier<double[]> |
createSpecifier()
Constructs a graphical control with which the user can
specify a suitable value for association with this key.
|
double[] |
stringToValue(String txt)
Decodes a string value to the value type of this key.
|
String |
valueToString(double[] dvals)
Reports a value as a string.
|
cast, getDefaultValue, getMeta, getValueClass, toString
public DoubleArrayConfigKey(ConfigMeta meta, double[] dflt)
meta
- metadatadflt
- default valuepublic String valueToString(double[] dvals)
ConfigKey
stringToValue(valueToString(v)).equals(v)
.
A null value, if permitted, should be represented as an empty string.valueToString
in class ConfigKey<double[]>
dvals
- possible value associated with this keypublic double[] stringToValue(String txt) throws ConfigException
ConfigKey
stringToValue
in class ConfigKey<double[]>
txt
- string representation of valueConfigException
public Specifier<double[]> createSpecifier()
ConfigKey
createSpecifier
in class ConfigKey<double[]>
Copyright © 2024 Central Laboratory of the Research Councils. All Rights Reserved.