Module org.maxicp

Interface State<T>

Type Parameters:
T - the type of the value wrapped in this state
All Known Subinterfaces:
StateInt, StateLong
All Known Implementing Classes:
Copy, CopyInt, CopyLong, Trail, TrailInt, TrailLong

public interface State<T>
Object that wraps a reference and can be saved and restored through the StateManager.saveState() / StateManager.restoreState() methods.
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    Set the value
     
    Retrieves the value
  • Method Details

    • setValue

      T setValue(T v)
      Set the value
      Parameters:
      v - the value to set
      Returns:
      the new value that was set
    • value

      T value()
      Retrieves the value
      Returns:
      the value
    • toString

      String toString()
      Overrides:
      toString in class Object