class Int extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private boolean |
changed |
private java.util.List<Observer> |
observers |
private int |
v |
Constructor and Description |
---|
Int() |
Modifier and Type | Method and Description |
---|---|
void |
addObserver(Observer o) |
void |
dec() |
int |
get() |
void |
inc() |
private void |
notifyObservers() |
private void |
setChanged() |
Int()
public void addObserver(Observer o)
private void setChanged()
private void notifyObservers()
public int get()
public void inc()
public void dec()