Class ObjectCounter.Counter

  • Enclosing class:
    ObjectCounter

    private static class ObjectCounter.Counter
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) int count  
    • Constructor Summary

      Constructors 
      Constructor Description
      Counter()  
      Counter​(int count)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int count()  
      void increment()  
      • Methods inherited from class java.lang.Object

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

      • count

        int count
    • Constructor Detail

      • Counter

        public Counter()
      • Counter

        public Counter​(int count)
    • Method Detail

      • count

        public int count()
      • increment

        public void increment()