Class DoNothingCounter

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      long count()
      Get the value of counter.
      void inc()
      Counter add 1.
      void inc​(long n)
      Counter add n.
      • Methods inherited from class java.lang.Object

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

      • DoNothingCounter

        public DoNothingCounter()
    • Method Detail

      • inc

        public void inc()
        Description copied from interface: Counter
        Counter add 1.
        Specified by:
        inc in interface Counter
      • inc

        public void inc​(long n)
        Description copied from interface: Counter
        Counter add n.
        Specified by:
        inc in interface Counter
      • count

        public long count()
        Description copied from interface: Counter
        Get the value of counter.
        Specified by:
        count in interface Counter