Interface EncounterCounter

All Known Implementing Classes:
EqualityEncounterCounter, IdentityEncounterCounter, StrongEqualityEncounterCounter, WeakEqualityEncounterCounter, WeakIdentityEncounterCounter

public interface EncounterCounter
  • Method Summary

    Modifier and Type
    Method
    Description
    long
     
    long
     
    void
    Remove all Object histories, resetting counts and clearing any references from strong counters.
  • Method Details

    • encounter

      long encounter(Object o)
      Returns:
      how many times have I seen this object before?
    • reset

      long reset(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.