+ +
+ +

Class MutableInteger

+
+
java.lang.Object +
com.spertus.jacquard.syntaxgrader.MutableInteger
+
+
+
+
public class MutableInteger +extends Object
+
A wrapper around a mutable integer value.
+
+
+ +
+
+
    + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      MutableInteger

      +
      public MutableInteger()
      +
      Constructs a mutable integer with an initial value of 0.
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      increment

      +
      public void increment()
      +
      Increments the value by 1.
      +
      +
    • +
    • +
      +

      getValue

      +
      public int getValue()
      +
      Gets the value.
      +
      +
      Returns:
      +
      the value
      +
      +
      +
    • +
    +
    +
  • +
+
+ +