Class MockVar<T>

java.lang.Object
net.officefloor.model.test.variable.MockVar<T>
All Implemented Interfaces:
In<T>, Out<T>, Var<T>

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

    • MockVar

      public MockVar()
      Default constructor.
    • MockVar

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

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