Class ParameterStructure

java.lang.Object
com.denodo.configuration.ParameterStructure
All Implemented Interfaces:
Serializable

public class ParameterStructure extends Object implements Serializable
Represents a structure of parameters. Allows putting and getting parameters, as in a Map that associates parameter names with Parameters.
See Also:
  • Field Details

    • serialVersionUID

      protected static final long serialVersionUID
      For interoperability with possible future changes.
      See Also:
  • Constructor Details

    • ParameterStructure

      public ParameterStructure()
      Creates an empty ParameterStructure object.
  • Method Details

    • put

      public <T> void put(Parameter<T> parameter)
      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

      public <T> Parameter<T> get(String parameterName) throws ParameterNotFoundException
      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

      public void remove(String parameterName)
    • 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

      public Map<String,Parameter<?>> getAsMap()
      Obtains a map that associates parameter names with Parameter.
      Returns:
      the map of parameters.
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object