Class Counter


  • public final class Counter
    extends java.lang.Object
    Mutable integer for use in collections
    • Field Summary

      Fields 
      Modifier and Type Field Description
      int value
      Mutable int value
    • Constructor Summary

      Constructors 
      Constructor Description
      Counter()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)  
      int hashCode()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • value

        public int value
        Mutable int value
    • Constructor Detail

      • Counter

        public Counter()
    • Method Detail

      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object