T - the type of the valuepublic class Parameter<T> extends Ind2uceEntity
GSON_DEFAULT, GSON_PLAIN, GSON_PRETTY, version| Constructor and Description |
|---|
Parameter(String name,
T value)
Instantiates a new parameter.
|
Parameter(String name,
T value,
Class<T> clazz)
Instantiates a new parameter.
|
Parameter(String name,
T value,
Type valueType)
Instantiates a new parameter.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getName()
Gets the name of the parameter.
|
Class<?> |
getType()
Gets the type.
|
String |
getTypeName()
Gets the type name.
|
T |
getValue()
Gets the value of the parameter.
|
int |
hashCode() |
void |
setDataObjectJavaType(Type type)
Sets the data object java type.
|
void |
setName(String name)
Sets the name of the parameter.
|
void |
setValue(T value)
Sets the value of the parameter.
|
String |
toString() |
fromJson, getGson, getVersion, toJsonpublic Parameter(String name, T value)
name - the namevalue - the valuepublic Parameter(String name, T value, Class<T> clazz)
name - the namevalue - the valueclazz - the clazzpublic String getName()
public Class<?> getType()
public String getTypeName()
public T getValue()
public void setDataObjectJavaType(Type type)
type - the new data object java typepublic void setName(String name)
name - the new name of the parameterpublic void setValue(T value)
value - the new value of the parameterpublic String toString()
toString in class Ind2uceEntityCopyright © 2018. All rights reserved.