Class Var<T>

  • Type Parameters:
    T - the type of the variable value

    public class Var<T>
    extends Object
    Variable with generic mutable value in a controller application.
    Author:
    Herbert Praehofer
    • Field Detail

      • value

        private T value
        Field for the mutable value of the variable.
    • Constructor Detail

      • Var

        public Var​(T initial)
        Constructor initializing the variable value.
        Parameters:
        initial - the initial value
    • Method Detail

      • get

        public T get()
        Gets the variable value.
        Returns:
        the variable value
      • set

        public void set​(T value)
        Sets the variable value.
        Parameters:
        value - the new value