public class NoQuarterState extends java.lang.Object implements State
Modifier and Type | Field and Description |
---|---|
(package private) GumballMachine |
gumballMachine |
Constructor and Description |
---|
NoQuarterState(GumballMachine gumballMachine) |
Modifier and Type | Method and Description |
---|---|
void |
dispense() |
void |
ejectQuarter() |
void |
insertQuarter() |
java.lang.String |
toString() |
void |
turnCrank() |
transient GumballMachine gumballMachine
public NoQuarterState(GumballMachine gumballMachine)
public void insertQuarter()
insertQuarter
in interface State
public void ejectQuarter()
ejectQuarter
in interface State
public java.lang.String toString()
toString
in class java.lang.Object