Package minicp.state

Interface StateInt

All Superinterfaces:
State<Integer>
All Known Implementing Classes:
CopyInt, TrailInt

public interface StateInt extends State<Integer>
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 int
    Decrements the value
    default int
    Increments the value

    Methods inherited from interface minicp.state.State

    setValue, toString, value
  • Method Details

    • increment

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

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