Class CompileVar<T>

java.lang.Object
net.officefloor.compile.test.officefloor.CompileVar<T>
All Implemented Interfaces:
Consumer<Var<T>>

public class CompileVar<T> extends Object implements Consumer<Var<T>>
Closure to obtain Var value.
Author:
Daniel Sagenschneider
  • Constructor Details

    • CompileVar

      public CompileVar()
      No initial value.
    • CompileVar

      public CompileVar(T initialValue)
      Instantiate with initial value for Var.
      Parameters:
      initialValue - Initial value.
  • Method Details

    • getValue

      public T getValue()
      Obtains the value of the Var.
      Returns:
      Value of the Var.
    • accept

      public void accept(Var<T> var)
      Specified by:
      accept in interface Consumer<T>