Class Counter


  • public class Counter
    extends java.lang.Object
    Simple class used to avoid immutable objects and autoboxing when storing changing integer primitives in a collection.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      int count  
    • Constructor Summary

      Constructors 
      Constructor Description
      Counter()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • count

        public int count
    • Constructor Detail

      • Counter

        public Counter()
    • Method Detail

      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object