Package com.denodo.configuration
Class SimpleParameter<T>
java.lang.Object
com.denodo.configuration.Parameter<T>
com.denodo.configuration.SimpleParameter<T>
- Type Parameters:
T-
- All Implemented Interfaces:
Serializable
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 Summary
FieldsModifier and TypeFieldDescriptionprotected static final longFor interoperability with possible future changes. -
Constructor Summary
ConstructorsConstructorDescriptionCreates an empty SimpleParameter object.SimpleParameter(String name, Collection<T> values) Creates a SimpleParameter with the given name and the given values.SimpleParameter(String name, Collection<T> values, boolean encrypted) Creates a SimpleParameter with the given name and the given values (encrypted). -
Method Summary
Modifier and TypeMethodDescriptionvoidaddEscapedValue(T value) voidAdds a new value to the parameter.booleangetValue()Obtains the first value of the parameter if it is a multivalued parameter or the unique value if it is a single-valued parameter.Obtains the values of the parameter.inthashCode()voidsetValues(Collection<T> values) Sets the values of the parameter.toString()Methods inherited from class com.denodo.configuration.Parameter
getInstances, getName, isEncrypted, setEncrypted, setInstances, setName
-
Field Details
-
serialVersionUID
protected static final long serialVersionUIDFor interoperability with possible future changes.- See Also:
-
-
Constructor Details
-
SimpleParameter
public SimpleParameter()Creates an empty SimpleParameter object. -
SimpleParameter
Creates a SimpleParameter with the given name and the given values.- Parameters:
name- the name of the parametervalues- a Collection ofObject
-
SimpleParameter
Creates a SimpleParameter with the given name and the given values (encrypted).- Parameters:
name- the name of the parametervalues- a Collection ofObjectencrypted- if the values are encrypted
-
-
Method Details
-
getValue
Description copied from class:ParameterObtains the first value of the parameter if it is a multivalued parameter or the unique value if it is a single-valued parameter. -
getValues
Description copied from class:ParameterObtains the values of the parameter. -
setValues
Description copied from class:ParameterSets the values of the parameter. -
addValue
Description copied from class:ParameterAdds a new value to the parameter. -
addEscapedValue
-
toString
-
equals
-
hashCode
public int hashCode()
-