|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
public interface CandyMachine
A machine that dispenses candy. Newly created candy machines must always have at least one piece of candy.
| Method Summary | |
|---|---|
java.lang.String |
get()
Get a piece of candy. |
boolean |
isEmpty()
Determine if the machine is empty. |
| Method Detail |
|---|
java.lang.String get()
throws CandyMachineException
CandyMachineException - If unable to return a piece of candy (e.g., if empty).boolean isEmpty()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||