T
- The type of parameter (e.g. String or Boolean).public class DXPParameterInstance<T extends java.lang.Comparable<?>> extends DXPParameterDefinition<T>
DXPParameterDefinition.FormatInfo
Constructor and Description |
---|
DXPParameterInstance(DXPParameterDefinition<T> pd)
Create a parameter instance from a parameter definition.
|
DXPParameterInstance(DXPParameterDefinition<T> pd,
T value)
Create a parameter instance from a parameter definition and value.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(DXPParameterDefinition<?> p)
Total order of two parameter objects, where objects primary order is by name.
|
T |
getValue()
Get the parameter's current value.
|
void |
setValue(T value)
Set the parameters current value.
|
java.lang.String |
toString()
Overrides the default
toString method. |
equals, getDefaultValue, getDescription, getName, hashCode, setDescription
public DXPParameterInstance(DXPParameterDefinition<T> pd)
pd
- The parameter definitionpublic DXPParameterInstance(DXPParameterDefinition<T> pd, T value)
pd
- The parameter definition.value
- The parameter value.public T getValue()
public void setValue(T value)
value
- The parameter's current value.public int compareTo(DXPParameterDefinition<?> p)
compareTo
in interface java.lang.Comparable<DXPParameterDefinition<?>>
compareTo
in class DXPParameterDefinition<T extends java.lang.Comparable<?>>
p
- the DXPParameterDefinition to compare against this onepublic java.lang.String toString()
toString
method.toString
in class DXPParameterDefinition<T extends java.lang.Comparable<?>>