Package com.denodo.configuration
Class ParameterStructure
java.lang.Object
com.denodo.configuration.ParameterStructure
- All Implemented Interfaces:
Serializable
Represents a structure of parameters. Allows putting and getting
parameters, as in a
Map that associates parameter names with
Parameters.- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final longFor interoperability with possible future changes. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean<T> Parameter<T>Obtains the parameter to which this structure maps the specified parameter name.getAsMap()Obtains a map that associates parameter names withParameter.inthashCode()booleanisEmpty()Obtains true if this map contains no key-value mappings.<T> voidAdds this parameter to the structure.voidtoString()
-
Field Details
-
serialVersionUID
protected static final long serialVersionUIDFor interoperability with possible future changes.- See Also:
-
-
Constructor Details
-
ParameterStructure
public ParameterStructure()Creates an empty ParameterStructure object.
-
-
Method Details
-
put
Adds this parameter to the structure. If the structure previously contained a mapping for the name of this parameter, the old value is replaced by the specified parameter.- Type Parameters:
T-- Parameters:
parameter- the parameter to be added to the structure.
-
get
Obtains the parameter to which this structure maps the specified parameter name.- Type Parameters:
T-- Parameters:
parameterName- name whose associated parameter is to be returned.- Returns:
- the parameter to which this structure maps the specified name.
- Throws:
ParameterNotFoundException- if the structure contains no mapping for this parameter name.
-
remove
-
isEmpty
public boolean isEmpty()Obtains true if this map contains no key-value mappings.- Returns:
- true if this map contains no key-value mappings.
-
getAsMap
Obtains a map that associates parameter names withParameter.- Returns:
- the map of parameters.
-
toString
-
equals
-
hashCode
public int hashCode()
-