|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectclojure.lang.AReference
clojure.lang.ARef
clojure.lang.Atom
public final class Atom
Field Summary |
---|
Fields inherited from class clojure.lang.ARef |
---|
validator |
Constructor Summary | |
---|---|
Atom(Object state)
|
|
Atom(Object state,
IPersistentMap meta)
|
Method Summary | |
---|---|
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)
|
Methods inherited from class clojure.lang.ARef |
---|
addWatch, getValidator, getWatches, notifyWatches, removeWatch, setValidator |
Methods inherited from class clojure.lang.AReference |
---|
alterMeta, meta, resetMeta |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Atom(Object state)
public Atom(Object state, IPersistentMap meta)
Method Detail |
---|
public Object deref()
public Object swap(IFn f)
public Object swap(IFn f, Object arg)
public Object swap(IFn f, Object arg1, Object arg2)
public Object swap(IFn f, Object x, Object y, ISeq args)
public boolean compareAndSet(Object oldv, Object newv)
public Object reset(Object newval)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |