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
  • Constructor Details

    • Parameter

      public Parameter(String name, T value)
      Instantiates a new parameter.
      Parameters:
      name - the name
      value - the value
    • Parameter

      public Parameter(String name, T value, Class<T> clazz)
      Instantiates a new parameter.
      Parameters:
      name - the name
      value - the value
      clazz - the clazz
    • Parameter

      public Parameter(String name, T value, Type valueType)
      Instantiates a new parameter.
      Parameters:
      name - the name
      value - the value
      valueType - the value type
  • Method Details

    • 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
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class MyDataEntity