Class ValueNode<V>

  • Type Parameters:
    V - the data type of the value

    public class ValueNode<V>
    extends Object

    Class which holds all data for a specific value.

    Since:
    0.0.4
    • Constructor Detail

      • ValueNode

        public ValueNode()

        Default constructor.

      • ValueNode

        public ValueNode​(V value,
                         String code,
                         String text)

        Overloaded constructor.

        Parameters:
        value - the value
        code - the code
        text - the text
    • Method Detail

      • getValue

        public V getValue()

        Getter for value.

        Returns:
        the value
      • setValue

        public void setValue​(V value)

        Setter for value.

        Parameters:
        value - the value
      • getCode

        public String getCode()

        Getter for code.

        Returns:
        the code
      • setCode

        public void setCode​(String code)

        Setter for code.

        Parameters:
        code - the code
      • getText

        public String getText()

        Getter for text.

        Returns:
        the text
      • setText

        public void setText​(String text)

        Setter for text.

        Parameters:
        text - the text
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object