T - public class SimpleParameter<T> extends Parameter<T>
SimpleParameter values is an Object.
The type of all values must be the same.| Modifier and Type | Field and Description |
|---|---|
protected static long |
serialVersionUID
For interoperability with possible future changes.
|
| Constructor and Description |
|---|
SimpleParameter()
Creates 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).
|
| Modifier and Type | Method and Description |
|---|---|
void |
addEscapedValue(T value) |
void |
addValue(T value)
Adds a new value to the parameter.
|
boolean |
equals(Object obj) |
T |
getValue()
Obtains the first value of the parameter if it is a multivalued
parameter or the unique value if it is a single-valued parameter.
|
Collection<T> |
getValues()
Obtains the values of the parameter.
|
int |
hashCode() |
void |
setValues(Collection<T> values)
Sets the values of the parameter.
|
String |
toString() |
getInstances, getName, isEncrypted, setEncrypted, setInstances, setNameprotected static final long serialVersionUID
public SimpleParameter()
public SimpleParameter(String name, Collection<T> values)
name - the name of the parametervalues - a Collection of Objectpublic SimpleParameter(String name, Collection<T> values, boolean encrypted)
name - the name of the parametervalues - a Collection of Objectencrypted - if the values are encryptedpublic T getValue()
Parameterpublic Collection<T> getValues()
Parameterpublic void setValues(Collection<T> values)
Parameterpublic void addValue(T value)
Parameterpublic void addEscapedValue(T value)
Copyright © 2024 Denodo Technologies. All rights reserved.