public class RefCount extends MutableInteger
value
Constructor and Description |
---|
RefCount()
Default constructor which initializes value to 1.
|
RefCount(int initial)
Constructor which sets an arbitrary initial value.
|
Modifier and Type | Method and Description |
---|---|
int |
decrement()
Decrement the counter by 1.
|
int |
increment()
Increment the counter by 1.
|
get, set, toString