Class MockVar<T>

  • All Implemented Interfaces:
    In<T>, Out<T>, Var<T>

    public class MockVar<T>
    extends java.lang.Object
    implements Var<T>
    Mock Var.
    Author:
    Daniel Sagenschneider
    • Constructor Summary

      Constructors 
      Constructor Description
      MockVar()
      Default constructor.
      MockVar​(T value)
      Instantiate.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      T get()
      Retrieves the value for the variable.
      void set​(T value)
      Sets the value for the variable.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MockVar

        public MockVar()
        Default constructor.
      • MockVar

        public MockVar​(T value)
        Instantiate.
        Parameters:
        value - Initial value.
    • Method Detail

      • set

        public void set​(T value)
        Description copied from interface: Out
        Sets the value for the variable.
        Specified by:
        set in interface Out<T>
        Parameters:
        value - Value for the variable.
      • get

        public T get()
        Description copied from interface: In
        Retrieves the value for the variable.
        Specified by:
        get in interface In<T>
        Returns:
        Value for the variable.