Package minicp.state
Interface StateInt
Object that wraps an integer value
that can be saved and restored through
the
StateManager.saveState() / StateManager.restoreState()
methods.- See Also:
-
Method Summary
-
Method Details
-
increment
default int increment()Increments the value- Returns:
- the new value
-
decrement
default int decrement()Decrements the value- Returns:
- the new value
-