class Long : Number
A 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): Long Atomically adds the given value to the current value. |
compareAndSet |
fun compareAndSet(expect: Long, update: Long): Boolean Atomically sets the value to the given updated value if the current value |
decrementAndGet |
fun decrementAndGet(): Long Atomically decrements by one the current value. |
get |
fun get(): Long Gets the current value. |
getAndAdd |
fun getAndAdd(delta: Long): Long Atomically adds the given value to the current value. |
getAndDecrement |
fun getAndDecrement(): Long Atomically decrements by one the current value. |
getAndIncrement |
fun getAndIncrement(): Long Atomically increments by one the current value. |
getAndSet |
fun getAndSet(newValue: Long): Long Atomically sets to the given value and returns the old value. |
getRecid |
fun getRecid(): Long
|
incrementAndGet |
fun incrementAndGet(): Long Atomically increments by one the current value. |
set |
fun set(newValue: Long): Unit Sets to the given value. |
toDouble |
fun toDouble(): Double |
toFloat |
fun toFloat(): Float |
toInt |
fun toInt(): Int |
toLong |
fun toLong(): Long |
toString |
fun toString(): String Returns the String representation of the current value. |