public int next() {
        value++;
        return value - 1;
    }
Increments the value by 1 and returns the value of this *before* incrementing
vespajlib/src/main/java/com/yahoo/lang/MutableInteger.java