class Integer : NumberAn int record that may be updated atomically. An Atomic@Integer is used in applications such as atomically incremented counters, and cannot be used as a replacement for an java.lang.Integer. However, this class does extend Number to allow uniform access by tools and utilities that deal with numerically-based classes.
| <init> |
Integer(store: Store, recid: Long) |
| addAndGet |
fun addAndGet(delta: Int): IntAtomically adds the given value to the current value. |
| compareAndSet |
fun compareAndSet(expect: Int, update: Int): BooleanAtomically sets the value to the given updated value if the current value |
| decrementAndGet |
fun decrementAndGet(): IntAtomically decrements by one the current value. |
| get |
fun get(): IntGets the current value. |
| getAndAdd |
fun getAndAdd(delta: Int): IntAtomically adds the given value to the current value. |
| getAndDecrement |
fun getAndDecrement(): IntAtomically decrements by one the current value. |
| getAndIncrement |
fun getAndIncrement(): IntAtomically increments by one the current value. |
| getAndSet |
fun getAndSet(newValue: Int): IntAtomically sets to the given value and returns the old value. |
| getRecid |
fun getRecid(): Long
|
| incrementAndGet |
fun incrementAndGet(): IntAtomically increments by one the current value. |
| set |
fun set(newValue: Int): UnitSets to the given value. |
| toDouble |
fun toDouble(): Double |
| toFloat |
fun toFloat(): Float |
| toInt |
fun toInt(): Int |
| toLong |
fun toLong(): Long |
| toString |
fun toString(): StringReturns the String representation of the current value. |