Class SimpleParameter<T>

java.lang.Object
com.denodo.configuration.Parameter<T>
com.denodo.configuration.SimpleParameter<T>
Type Parameters:
T -
All Implemented Interfaces:
Serializable

public class SimpleParameter<T> extends Parameter<T>
An implementation of the Parameter interface. The type of SimpleParameter values is an Object. The type of all values must be the same.
See Also:
  • Field Details

    • serialVersionUID

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

    • SimpleParameter

      public SimpleParameter()
      Creates an empty SimpleParameter object.
    • SimpleParameter

      public SimpleParameter(String name, Collection<T> values)
      Creates a SimpleParameter with the given name and the given values.
      Parameters:
      name - the name of the parameter
      values - a Collection of Object
    • SimpleParameter

      public SimpleParameter(String name, Collection<T> values, boolean encrypted)
      Creates a SimpleParameter with the given name and the given values (encrypted).
      Parameters:
      name - the name of the parameter
      values - a Collection of Object
      encrypted - if the values are encrypted
  • Method Details

    • getValue

      public T getValue()
      Description copied from class: Parameter
      Obtains the first value of the parameter if it is a multivalued parameter or the unique value if it is a single-valued parameter.
      Specified by:
      getValue in class Parameter<T>
      Returns:
      the first value of the parameter if it is multivalued; the unique value if it is single-valued.
    • getValues

      public Collection<T> getValues()
      Description copied from class: Parameter
      Obtains the values of the parameter.
      Specified by:
      getValues in class Parameter<T>
      Returns:
      the collection of parameter values.
    • setValues

      public void setValues(Collection<T> values)
      Description copied from class: Parameter
      Sets the values of the parameter.
      Specified by:
      setValues in class Parameter<T>
      Parameters:
      values - the Collection of values to set.
    • addValue

      public void addValue(T value)
      Description copied from class: Parameter
      Adds a new value to the parameter.
      Specified by:
      addValue in class Parameter<T>
      Parameters:
      value - the value to add.
    • addEscapedValue

      public void addEscapedValue(T value)
    • toString

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

      public boolean equals(Object obj)
      Overrides:
      equals in class Parameter<T>
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Parameter<T>