clojure.lang
Class ARef

java.lang.Object
  extended by clojure.lang.AReference
      extended by 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


Field Summary
protected  IFn validator
           
 
Constructor Summary
ARef()
           
ARef(IPersistentMap meta)
           
 
Method Summary
 IRef addWatch(Object key, IFn callback)
           
 IFn getValidator()
           
 IPersistentMap getWatches()
           
 void notifyWatches(Object oldval, Object newval)
           
 IRef removeWatch(Object key)
           
 void setValidator(IFn vf)
           
 
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
 
Methods inherited from interface clojure.lang.IDeref
deref
 

Field Detail

validator

protected volatile IFn validator
Constructor Detail

ARef

public ARef()

ARef

public ARef(IPersistentMap meta)
Method Detail

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 © 2015. All Rights Reserved.