Class NestingCounter

java.lang.Object
com.google.googlejavaformat.java.javadoc.NestingCounter

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

    • value

      private int value
  • Constructor Details

    • NestingCounter

      NestingCounter()
  • Method Details

    • value

      int value()
    • increment

      void increment()
    • incrementIfPositive

      void incrementIfPositive()
    • decrementIfPositive

      void decrementIfPositive()
    • isPositive

      boolean isPositive()
    • reset

      void reset()