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, setName
protected static final long serialVersionUID
public SimpleParameter()
public SimpleParameter(String name, Collection<T> values)
name
- the name of the parametervalues
- a Collection of Object
public SimpleParameter(String name, Collection<T> values, boolean encrypted)
name
- the name of the parametervalues
- a Collection of Object
encrypted
- if the values are encryptedpublic T getValue()
Parameter
public Collection<T> getValues()
Parameter
public void setValues(Collection<T> values)
Parameter
public void addValue(T value)
Parameter
public void addEscapedValue(T value)
Copyright © 2024 Denodo Technologies. All rights reserved.