org.mapdb / Atomic / String / getAndSet

getAndSet

fun getAndSet(newValue: String): String

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

Parameters

newValue - the new value

Return
the previous value