Package | Description |
---|---|
headfirst.state.gumballstate |
Modifier and Type | Class and Description |
---|---|
class |
HasQuarterState |
class |
NoQuarterState |
class |
SoldOutState |
class |
SoldState |
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 |
Modifier and Type | Method and Description |
---|---|
State |
GumballMachine.getHasQuarterState() |
State |
GumballMachine.getNoQuarterState() |
State |
GumballMachine.getSoldOutState() |
State |
GumballMachine.getSoldState() |
State |
GumballMachine.getState() |
Modifier and Type | Method and Description |
---|---|
(package private) void |
GumballMachine.setState(State state) |