Constructor and Description |
---|
Atom(Object state) |
Atom(Object state,
IPersistentMap meta) |
Modifier and Type | Method and Description |
---|---|
boolean |
compareAndSet(Object oldv,
Object newv) |
Object |
deref() |
Object |
reset(Object newval) |
Object |
swap(IFn f) |
Object |
swap(IFn f,
Object arg) |
Object |
swap(IFn f,
Object arg1,
Object arg2) |
Object |
swap(IFn f,
Object x,
Object y,
ISeq args) |
addWatch, getValidator, getWatches, notifyWatches, removeWatch, setValidator
alterMeta, meta, resetMeta
public Atom(Object state)
public Atom(Object state, IPersistentMap meta)
public boolean compareAndSet(Object oldv, Object newv)
compareAndSet
in interface IAtom
Copyright © 2017. All rights reserved.