public interface ReferenceCounted
Modifier and Type | Method and Description |
---|---|
int |
getCount()
Gets the current reference count, which starts at 0.
|
void |
release()
Release a reference to this object.
|
ReferenceCounted |
retain()
Retain an additional reference to this object.
|
int getCount()
ReferenceCounted retain()
void release()
java.lang.IllegalStateException
- if the reference count is already 0