Class CompileVar<T>

  • All Implemented Interfaces:
    java.util.function.Consumer<Var<T>>

    public class CompileVar<T>
    extends java.lang.Object
    implements java.util.function.Consumer<Var<T>>
    Closure to obtain Var value.
    Author:
    Daniel Sagenschneider
    • Constructor Summary

      Constructors 
      Constructor Description
      CompileVar()
      No initial value.
      CompileVar​(T initialValue)
      Instantiate with initial value for Var.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void accept​(Var<T> var)  
      T getValue()
      Obtains the value of the Var.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.function.Consumer

        andThen
    • Constructor Detail

      • CompileVar

        public CompileVar()
        No initial value.
      • CompileVar

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

      • 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 java.util.function.Consumer<T>