Class JavaNCSSCheck.Counter

java.lang.Object
com.puppycrawl.tools.checkstyle.checks.metrics.JavaNCSSCheck.Counter
Enclosing class:
JavaNCSSCheck

private static final class JavaNCSSCheck.Counter extends Object
Class representing a counter.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private int
    The counters internal integer.
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    private
     
  • Method Summary

    Modifier and Type
    Method
    Description
    (package private) int
    Gets the counters value.
    (package private) void
    Increments the counter.

    Methods inherited from class java.lang.Object

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

    • count

      private int count
      The counters internal integer.
  • Constructor Details

  • Method Details

    • increment

      void increment()
      Increments the counter.
    • getCount

      int getCount()
      Gets the counters value.
      Returns:
      the counter