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 booleanequals(Object o)StringgetName()Class<?>getType()Gets the type.StringgetTypeName()Gets the type name.TgetValue()Gets the value of the parameter.inthashCode()voidsetValue(T value)Sets the value of the parameter.StringtoString()-
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:
toStringin classMyDataEntity
-
-