public class WaterJugState
extends java.lang.Object
implements State
This class represents states of the Water Jug problem.
It creates new water jug states, tests states for equality,
and produces string representations of them.
Note that this class implements the State interface
and therefore imports framework.State.
Tests for equality between this state and the argument state.
Two states are equal if the X jugs have the same amount of water
and the Y jugs have the same amount of water.