|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
TYPE - the type of object this counter works withpublic interface IReferenceCounter<TYPE>
Handles reference counting for objects.
| Method Summary | |
|---|---|
int |
adjustCount(TYPE target,
int delta)
Adjust the number of reference counts for the target object by the delta. |
void |
clear()
Clear all reference counts. |
int |
getCount(TYPE target)
Get the number of references for the target. |
| Method Detail |
|---|
int getCount(TYPE target)
Object.equals(Object) to find the reference counts for the
target.
target - the target object to find the number of references for
int adjustCount(TYPE target,
int delta)
Object.equals(Object) to find the reference counts for the
target.
target - the target object to adjust the number of references fordelta - the change in the reference count for the object
void clear()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||