clojure.lang
Class ARef
java.lang.Object
clojure.lang.AReference
clojure.lang.ARef
- All Implemented Interfaces:
- IDeref, IMeta, IRef, IReference
- Direct Known Subclasses:
- Agent, Atom, Ref, Var
public abstract class ARef
- extends AReference
- implements IRef
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface clojure.lang.IDeref |
deref |
validator
protected volatile IFn validator
ARef
public ARef()
ARef
public ARef(IPersistentMap meta)
setValidator
public void setValidator(IFn vf)
- Specified by:
setValidator
in interface IRef
getValidator
public IFn getValidator()
- Specified by:
getValidator
in interface IRef
getWatches
public IPersistentMap getWatches()
- Specified by:
getWatches
in interface IRef
addWatch
public IRef addWatch(Object key,
IFn callback)
- Specified by:
addWatch
in interface IRef
removeWatch
public IRef removeWatch(Object key)
- Specified by:
removeWatch
in interface IRef
notifyWatches
public void notifyWatches(Object oldval,
Object newval)
Copyright © 2014. All Rights Reserved.