public class DefaultConfigurationProperty extends Object implements ConfigurationProperty
| Constructor and Description |
|---|
DefaultConfigurationProperty(String name,
List<String> values)
Construct a configuration property.
|
| Modifier and Type | Method and Description |
|---|---|
Boolean |
asSingleBooleanValue() |
String |
asSingleValue() |
boolean |
equals(Object obj) |
String |
getName()
The name of the property.
|
List<String> |
getValues()
The values for the permutation currently being considered.
|
int |
hashCode() |
String |
toString() |
public DefaultConfigurationProperty(String name, List<String> values)
name - the name of this property, must not be nullvalues - the list of possible values, must not be null and will be returned to callers, so
a copy should be passed into this ctor if the caller will use this set laterpublic List<String> getValues()
ConfigurationPropertygetValues in interface ConfigurationPropertypublic String asSingleValue() throws UnableToCompleteException
asSingleValue in interface ConfigurationPropertyUnableToCompleteExceptionpublic Boolean asSingleBooleanValue() throws UnableToCompleteException
asSingleBooleanValue in interface ConfigurationPropertyUnableToCompleteExceptionpublic String getName()
ConfigurationPropertygetName in interface ConfigurationPropertyCopyright © 2018–2020. All rights reserved.