Package com.mchange.v2.encounter
Class IdentityEncounterCounter
java.lang.Object
com.mchange.v2.encounter.IdentityEncounterCounter
- All Implemented Interfaces:
EncounterCounter
Deprecated.
use WeakIdentityEncounterCounter (name changed to emphasize for library users
that they need to understand whether implementations are weak or strong
to avoid accidental reference retention in strong counters)
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
IdentityEncounterCounter
public IdentityEncounterCounter()Deprecated.
-
-
Method Details
-
encounter
- Specified by:
encounter
in interfaceEncounterCounter
- Returns:
- how many times have I seen this object before?
-
reset
- Specified by:
reset
in interfaceEncounterCounter
- Returns:
- how many times have I seen this object before, then remove this Object's history, resetting its count and eliminating any reference from strong counters.
-
resetAll
public void resetAll()Description copied from interface:EncounterCounter
Remove all Object histories, resetting counts and clearing any references from strong counters.- Specified by:
resetAll
in interfaceEncounterCounter
-