Class 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 Detail

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

        public int hashCode()
        Overrides:
        hashCode in class Object