java.lang.Object
swim.streamlet.AbstractMapInoutlet<K,V,V,IO,IO>
swim.streamlet.combinator.MemoizeMapCombinator<K,V,IO>
- All Implemented Interfaces:
Inlet<IO>
,Inoutlet<IO,
,IO> MapInlet<K,
,V, IO> MapInoutlet<K,
,V, V, IO, IO> MapOutlet<K,
,V, IO> Outlet<IO>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
containsKey
(K key) Returnstrue
if the current state of thisMapOutlet
contains the givenkey
; otherwise returnsfalse
.get()
Returns the current state of thisOutlet
.Returns the value assocaited with the givenkey
in the current state of thisMapOutlet
, if defined; otherwise returnsnull
.Returns anIterator
over the keys in the current state of thisMapOutlet
.memoize()
protected void
onRecohere
(int version) protected void
onRecohereKey
(K key, KeyEffect effect, int version) Methods inherited from class swim.streamlet.AbstractMapInoutlet
bindInput, bindInput, bindOutput, decohere, decohereInput, decohereInputKey, decohereKey, decohereOutput, decohereOutputKey, didDecohere, didDecohereKey, didRecohere, didRecohereKey, disconnectInputs, disconnectOutputs, input, onDecohere, onDecohereKey, outlet, outputIterator, recohere, recohereInput, recohereInputKey, recohereKey, recohereOutput, recohereOutputKey, unbindInput, unbindOutput, unbindOutputs, willDecohere, willDecohereKey, willRecohere, willRecohereKey
-
Field Details
-
state
-
cache
-
-
Constructor Details
-
MemoizeMapCombinator
public MemoizeMapCombinator()
-
-
Method Details
-
containsKey
Description copied from interface:MapOutlet
Returnstrue
if the current state of thisMapOutlet
contains the givenkey
; otherwise returnsfalse
.- Specified by:
containsKey
in interfaceMapOutlet<K,
V, IO> - Specified by:
containsKey
in classAbstractMapInoutlet<K,
V, V, IO, IO>
-
get
Description copied from interface:MapOutlet
Returns the value assocaited with the givenkey
in the current state of thisMapOutlet
, if defined; otherwise returnsnull
. -
get
Description copied from interface:Outlet
Returns the current state of thisOutlet
. -
keyIterator
Description copied from interface:MapOutlet
Returns anIterator
over the keys in the current state of thisMapOutlet
.- Specified by:
keyIterator
in interfaceMapOutlet<K,
V, IO> - Specified by:
keyIterator
in classAbstractMapInoutlet<K,
V, V, IO, IO>
-
onRecohereKey
- Overrides:
onRecohereKey
in classAbstractMapInoutlet<K,
V, V, IO, IO>
-
onRecohere
protected void onRecohere(int version) - Overrides:
onRecohere
in classAbstractMapInoutlet<K,
V, V, IO, IO>
-
memoize
-