Increments and returns the new value
Adds the value and returns the new value
Decrements and returns the new value
Subtracts the value and returns the new value
Decrements the value if the current value is greater than the max value supplied.
Decrements the value if the current value is greater than the max value supplied.
This method is thread-safe without locking.
Increments the value if the current value is less than the max value supplied.
Increments the value if the current value is less than the max value supplied.
This method is thread-safe without locking.
Modifies the value atomicly without locking if the resulting value of the function is Some.
Modifies the value atomicly without locking if the resulting value of the function is Some.
AtomicInt extends the functionality of AtomicInteger to provide additional convenience functionality.