class Long : NumberA long record that may be updated atomically. An Atomic#Long is used in applications such as atomically incremented sequence numbers, and cannot be used as a replacement for a java.lang.Long. However, this class does extend Number to allow uniform access by tools and utilities that deal with numerically-based classes.
| <init> |
Long(store: Store, recid: Long) |
| addAndGet |
fun addAndGet(delta: Long): LongAtomically adds the given value to the current value. |
| compareAndSet |
fun compareAndSet(expect: Long, update: Long): BooleanAtomically sets the value to the given updated value if the current value |
| decrementAndGet |
fun decrementAndGet(): LongAtomically decrements by one the current value. |
| get |
fun get(): LongGets the current value. |
| getAndAdd |
fun getAndAdd(delta: Long): LongAtomically adds the given value to the current value. |
| getAndDecrement |
fun getAndDecrement(): LongAtomically decrements by one the current value. |
| getAndIncrement |
fun getAndIncrement(): LongAtomically increments by one the current value. |
| getAndSet |
fun getAndSet(newValue: Long): LongAtomically sets to the given value and returns the old value. |
| getRecid |
fun getRecid(): Long
|
| incrementAndGet |
fun incrementAndGet(): LongAtomically increments by one the current value. |
| set |
fun set(newValue: Long): 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. |