Class Variable.Local<X>

  • All Implemented Interfaces:
    javolution.lang.Reference<X>, Variable<X>
    Enclosing interface:
    Variable<X>

    public static class Variable.Local<X>
    extends java.lang.Object
    implements Variable<X>
    This class represents a simple Variable implementation for functions not shared between threads (non static). Functions shared between multiple-threads should use a different type of variable such as Variable.Global.
    • Constructor Summary

      Constructors 
      Constructor Description
      Local​(java.lang.String symbol)
      Creates a new local variable with a unique symbol.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      X get()  
      java.lang.String getSymbol()
      Returns the symbol for this variable.
      void set​(X arg0)  
      • Methods inherited from class java.lang.Object

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

      • Local

        public Local​(java.lang.String symbol)
        Creates a new local variable with a unique symbol.
        Parameters:
        symbol - the variable symbol.
    • Method Detail

      • getSymbol

        public java.lang.String getSymbol()
        Description copied from interface: Variable
        Returns the symbol for this variable.
        Specified by:
        getSymbol in interface Variable<X>
        Returns:
        this variable's symbol.
      • get

        public X get()
        Specified by:
        get in interface javolution.lang.Reference<X>
      • set

        public void set​(X arg0)
        Specified by:
        set in interface javolution.lang.Reference<X>