getAndSet

fun getAndSet(newValue: T): T