Метод | Описание | |
---|---|---|
Atom ( object state ) : System |
Construct an atom with given intiial value.
|
|
Atom ( object state, IPersistentMap meta ) : System |
Construct an atom with given initial value and metadata.
|
|
deref ( ) : object |
Gets the (immutable) value the reference is holding.
|
Метод | Описание | |
---|---|---|
compareAndSet ( object oldv, object newv ) : bool | ||
reset ( object newv ) : 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 ) : object |
public Atom ( object state ) : System | ||
state | object | The initial value |
Результат | System |
public Atom ( object state, IPersistentMap meta ) : System | ||
state | object | The initial value. |
meta | IPersistentMap | The metadata to attach. |
Результат | System |