MutableInt (Apache OpenNLP Tools 2.5.9 API)
Description: declaration: package: opennlp.tools.util, class: MutableInt

# Class MutableInt

java.lang.Object
opennlp.tools.util.MutableInt

public class MutableInt extends Object
This is a non-thread safe mutable int.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `MutableInt(int i)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `int`
  `getValue()`
  `void`
  `increment()`
  Adds `1` to the curren value.

  ### Methods inherited from class Object

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

- ## Constructor Details

  - ### MutableInt

    public MutableInt(int i)
    Parameters:
      `i` - The initial `int` value to encapsulate.

- ## Method Details

  - ### increment

    public void increment()
    Adds `1` to the curren value.

  - ### getValue

    public int getValue()
    Returns:
      Retrieves the current value of the `MutableInt`.