Class Parameter<T>
- java.lang.Object
-
- de.fraunhofer.iese.mydata.common.MyDataEntity
-
- de.fraunhofer.iese.mydata.policy.parameter.Parameter<T>
-
- Type Parameters:
T
- the type of the value
public class Parameter<T> extends MyDataEntity
A parameter, basically a key-value pair.- Author:
- Fraunhofer IESE
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
String
getName()
Class<?>
getType()
Gets the type.String
getTypeName()
Gets the type name.T
getValue()
Gets the value of the parameter.int
hashCode()
void
setValue(T value)
Sets the value of the parameter.String
toString()
-
Methods inherited from class de.fraunhofer.iese.mydata.common.MyDataEntity
fromJson, getGson, getGson, toJson, validate, validateAndNullCheck
-
-
-
-
Constructor Detail
-
Parameter
public Parameter(String name, T value)
Instantiates a new parameter.- Parameters:
name
- the namevalue
- the value
-
Parameter
public Parameter(String name, T value, Class<T> clazz)
Instantiates a new parameter.- Parameters:
name
- the namevalue
- the valueclazz
- the clazz
-
-
Method Detail
-
getName
public String getName()
-
getType
public Class<?> getType()
Gets the type.- Returns:
- the type
-
getTypeName
public String getTypeName()
Gets the type name.- Returns:
- the type name
-
getValue
public T getValue()
Gets the value of the parameter.- Returns:
- the value of the parameter
-
setValue
public void setValue(T value)
Sets the value of the parameter.- Parameters:
value
- the new value of the parameter
-
toString
public String toString()
- Overrides:
toString
in classMyDataEntity
-
-