org.cpsolver.studentsct

## Class OnlineSectProof.Counter

- java.lang.Object
- - org.cpsolver.studentsct.OnlineSectProof.Counter

- Enclosing class:
    OnlineSectProof

      public static class OnlineSectProof.Counter
      extends Object

  Simple integer counter

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `Counter()` A counter starting from zero
    `Counter(int init)` A counter starting from the given number

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `inc()` Increase counter by one
    `void` | `inc(int val)` Increase counter by the given value
    `int` | `intValue()` Return counter value

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### Counter

          public Counter()

      A counter starting from zero

    - #### Counter

          public Counter(int init)

      A counter starting from the given number
      Parameters:
        `init` - initial value

  - ### Method Detail

    - #### inc

          public void inc()

      Increase counter by one

    - #### inc

          public void inc(int val)

      Increase counter by the given value
      Parameters:
        `val` - increment

    - #### intValue

          public int intValue()

      Return counter value
      Returns:
        current value