Package | Description |
---|---|
headfirst.proxy.gumball |
Modifier and Type | Class and Description |
---|---|
class |
HasQuarterState |
class |
NoQuarterState |
class |
SoldOutState |
class |
SoldState |
class |
WinnerState |
Modifier and Type | Field and Description |
---|---|
(package private) State |
GumballMachine.hasQuarterState |
(package private) State |
GumballMachine.noQuarterState |
(package private) State |
GumballMachine.soldOutState |
(package private) State |
GumballMachine.soldState |
(package private) State |
GumballMachine.state |
(package private) State |
GumballMachine.winnerState |
Modifier and Type | Method and Description |
---|---|
State |
GumballMachine.getHasQuarterState() |
State |
GumballMachine.getNoQuarterState() |
State |
GumballMachine.getSoldOutState() |
State |
GumballMachine.getSoldState() |
State |
GumballMachine.getState() |
State |
GumballMachineRemote.getState() |
State |
GumballMachine.getWinnerState() |
Modifier and Type | Method and Description |
---|---|
(package private) void |
GumballMachine.setState(State state) |