Module org.maxicp

Interface StateLong

All Superinterfaces:
State<Long>
All Known Implementing Classes:
CopyLong, TrailLong

public interface StateLong extends State<Long>
Object that wraps an integer value that can be saved and restored through the StateManager.saveState() / StateManager.restoreState() methods.
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    default long
    Decrements the value
    default long
    Increments the value

    Methods inherited from interface org.maxicp.state.State

    setValue, toString, value
  • Method Details

    • increment

      default long increment()
      Increments the value
      Returns:
      the new value
    • decrement

      default long decrement()
      Decrements the value
      Returns:
      the new value