public abstract class ARef extends AReference implements IRef
Constructor and Description |
---|
ARef() |
ARef(IPersistentMap meta) |
Modifier and Type | Method and Description |
---|---|
IRef |
addWatch(Object key,
IFn callback) |
IFn |
getValidator() |
IPersistentMap |
getWatches() |
void |
notifyWatches(Object oldval,
Object newval) |
IRef |
removeWatch(Object key) |
void |
setValidator(IFn vf) |
alterMeta, meta, resetMeta
protected volatile IFn validator
public ARef()
public ARef(IPersistentMap meta)
public void setValidator(IFn vf)
setValidator
in interface IRef
public IFn getValidator()
getValidator
in interface IRef
public IPersistentMap getWatches()
getWatches
in interface IRef
public IRef removeWatch(Object key)
removeWatch
in interface IRef
Copyright © 2022. All rights reserved.