| Modifier and Type | Interface and Description |
|---|---|
| public interface |
| Modifier and Type | Class and Description |
|---|---|
| pack-priv class | |
| public class | |
| public class | EqualityEncounterCounter
Deprecated
-- Use of WeakHashMap can't properly guarantee counts with equality semantics,
as an Object can be encounted garbage collected, then re-encountered with
no apparent history.
|
| pack-priv class | |
| public class | IdentityEncounterCounter
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)
|
| public class | StrongEqualityEncounterCounter
Note Use of StrongEqualityEncounterCounter will maintain a reference to any Object it has encountered, leading potentially to memory leaks if it is resources are not reset. |
| public class | WeakEqualityEncounterCounter
Note Use of WeakEqualityEncounterCounter can't fully guarantee counts with equality semantics, as an Object can be encounted garbage collected, then re-encountered with no apparent history. |
| public class |