Package com.google.gwt.core.ext
Class DefaultConfigurationProperty
- java.lang.Object
-
- com.google.gwt.core.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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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()
-
-
-
Constructor Detail
-
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 Detail
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
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.
-
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.
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-