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 boolean
equals(java.lang.Object obj)
java.lang.String
getName()
The name of the property.java.util.List<java.lang.String>
getValues()
The values for the permutation currently being considered.int
hashCode()
java.lang.String
toString()
-
-
-
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:
equals
in classjava.lang.Object
-
getName
public java.lang.String getName()
Description copied from interface:ConfigurationProperty
The name of the property.- Specified by:
getName
in interfaceConfigurationProperty
- Returns:
- the property name as a String.
-
getValues
public java.util.List<java.lang.String> getValues()
Description copied from interface:ConfigurationProperty
The values for the permutation currently being considered.- Specified by:
getValues
in interfaceConfigurationProperty
- Returns:
- the property values as a List of Strings.
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-