Package com.mchange.v2.encounter
Interface EncounterCounter
-
- All Known Implementing Classes:
EqualityEncounterCounter,IdentityEncounterCounter,StrongEqualityEncounterCounter,WeakEqualityEncounterCounter,WeakIdentityEncounterCounter
public interface EncounterCounter
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description longencounter(java.lang.Object o)longreset(java.lang.Object o)voidresetAll()Remove all Object histories, resetting counts and clearing any references from strong counters.
-
-
-
Method Detail
-
encounter
long encounter(java.lang.Object o)
- Returns:
- how many times have I seen this object before?
-
reset
long reset(java.lang.Object o)
- 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
void resetAll()
Remove all Object histories, resetting counts and clearing any references from strong counters.
-
-