Class NestingCounter


  • final class NestingCounter
    extends java.lang.Object
    Mutable integer for tracking the level of nesting.
    • Field Summary

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

      Constructors 
      Constructor Description
      NestingCounter()  
    • Field Detail

      • value

        private int value
    • Constructor Detail

      • NestingCounter

        NestingCounter()
    • Method Detail

      • value

        int value()
      • increment

        void increment()
      • incrementIfPositive

        void incrementIfPositive()
      • decrementIfPositive

        void decrementIfPositive()
      • isPositive

        boolean isPositive()
      • reset

        void reset()