org.powerscala.property.backing.AtomicBacking.scala Maven / Gradle / Ivy
The newest version!
package org.powerscala.property.backing
import java.util.concurrent.atomic.AtomicReference
/**
* AtomicBacking utilizes an AtomicReference for the backing store.
*
* @author Matt Hicks
*/
class AtomicBacking[T] extends Backing[T] {
private val v = new AtomicReference[T]()
final def getValue = v.get()
final def setValue(value: T) {
v.set(value)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy