clojure.lang
Class Atom
java.lang.Object
clojure.lang.AReference
clojure.lang.ARef
clojure.lang.Atom
- All Implemented Interfaces:
- IAtom, IDeref, IMeta, IRef, IReference
public final class Atom
- extends ARef
- implements IAtom
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Atom
public Atom(Object state)
Atom
public Atom(Object state,
IPersistentMap meta)
deref
public Object deref()
- Specified by:
deref
in interface IDeref
swap
public Object swap(IFn f)
- Specified by:
swap
in interface IAtom
swap
public Object swap(IFn f,
Object arg)
- Specified by:
swap
in interface IAtom
swap
public Object swap(IFn f,
Object arg1,
Object arg2)
- Specified by:
swap
in interface IAtom
swap
public Object swap(IFn f,
Object x,
Object y,
ISeq args)
- Specified by:
swap
in interface IAtom
compareAndSet
public boolean compareAndSet(Object oldv,
Object newv)
- Specified by:
compareAndSet
in interface IAtom
reset
public Object reset(Object newval)
- Specified by:
reset
in interface IAtom
Copyright © 2016. All Rights Reserved.