public class ChocolateBoiler extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private boolean |
boiled |
private boolean |
empty |
private static ChocolateBoiler |
uniqueInstance |
Modifier | Constructor and Description |
---|---|
private |
ChocolateBoiler() |
Modifier and Type | Method and Description |
---|---|
void |
boil() |
void |
drain() |
void |
fill() |
static ChocolateBoiler |
getInstance() |
boolean |
isBoiled() |
boolean |
isEmpty() |
private boolean empty
private boolean boiled
private static ChocolateBoiler uniqueInstance
private ChocolateBoiler()
public static ChocolateBoiler getInstance()
public void fill()
public void drain()
public void boil()
public boolean isEmpty()
public boolean isBoiled()