org.mapdb / Atomic / String

String

class String

A String record that may be updated atomically.



Constructors

<init> String(store: Store, recid: Long)

Functions

compareAndSet fun compareAndSet(expect: String, update: String): Boolean

Atomically sets the value to the given updated value if the current value equals the expected value.

get fun get(): String

Returns the current value.

getAndSet fun getAndSet(newValue: String): String

Atomically sets to the given value and returns the previous value.

getRecid fun getRecid(): Long

set fun set(newValue: String): Unit

Unconditionally sets to the given value.

toString fun toString(): String