Package org.gwtproject.ext
Class DefaultConfigurationProperty
java.lang.Object
org.gwtproject.ext.DefaultConfigurationProperty
- All Implemented Interfaces:
ConfigurationProperty
public class DefaultConfigurationProperty extends java.lang.Object implements ConfigurationProperty
Default immutable implementation of ConfigurationProperty that receives its values in its
constructor.
-
Constructor Summary
Constructors Constructor Description DefaultConfigurationProperty(java.lang.String name, java.util.List<java.lang.String> values)Construct a configuration property. -
Method Summary
Modifier and Type Method Description java.lang.BooleanasSingleBooleanValue()java.lang.StringasSingleValue()booleanequals(java.lang.Object obj)java.lang.StringgetName()The name of the property.java.util.List<java.lang.String>getValues()The values for the permutation currently being considered.inthashCode()java.lang.StringtoString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Constructor Details
-
DefaultConfigurationProperty
public DefaultConfigurationProperty(java.lang.String name, java.util.List<java.lang.String> values)Construct a configuration property.- Parameters:
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 later
-
-
Method Details
-
equals
public boolean equals(java.lang.Object obj)- Overrides:
equalsin classjava.lang.Object
-
getValues
public java.util.List<java.lang.String> getValues()Description copied from interface:ConfigurationPropertyThe values for the permutation currently being considered.- Specified by:
getValuesin interfaceConfigurationProperty- Returns:
- the property values as a List of Strings.
-
asSingleValue
- Specified by:
asSingleValuein interfaceConfigurationProperty- Throws:
UnableToCompleteException
-
asSingleBooleanValue
- Specified by:
asSingleBooleanValuein interfaceConfigurationProperty- Throws:
UnableToCompleteException
-
getName
public java.lang.String getName()Description copied from interface:ConfigurationPropertyThe name of the property.- Specified by:
getNamein interfaceConfigurationProperty- Returns:
- the property name as a String.
-
hashCode
public int hashCode()- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-