public class DynamicParameter
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
DynamicParameter(java.lang.String name,
java.lang.Object data)
Constructor which initializes values.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(java.lang.Object obj)
Compares this object with the specified object 'obj'.
|
boolean |
dataEquals(java.lang.Object obj)
Returns true if this parameter's data object equals the given
object or if both objects are null.
|
java.lang.Object |
getData()
Returns data object.
|
java.lang.String |
getName()
Returns parameter name.
|
void |
setData(java.lang.Object obj)
Sets data object.
|
java.lang.String |
toString()
Returns string representation of data object.
|
public DynamicParameter(java.lang.String name, java.lang.Object data)
name
- name of parameter.data
- data object, such as Integer, Double, String, etc.public java.lang.String getName()
public java.lang.Object getData()
public void setData(java.lang.Object obj)
obj
- data object, such as Integer, Double, String, etc.public boolean dataEquals(java.lang.Object obj)
public java.lang.String toString()
toString
in class java.lang.Object
public int compareTo(java.lang.Object obj)
obj
- an object to compare to.java.lang.ClassCastException
- if the specified object's type
prevents it from being compared to this object.