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 TypeMethodDescriptionbooleancontainsKey(K key) Returnstrueif the current state of thisMapOutletcontains the givenkey; otherwise returnsfalse.get()Returns the current state of thisOutlet.Returns the value assocaited with the givenkeyin the current state of thisMapOutlet, if defined; otherwise returnsnull.Returns anIteratorover the keys in the current state of thisMapOutlet.memoize()protected voidonRecohere(int version) protected voidonRecohereKey(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:MapOutletReturnstrueif the current state of thisMapOutletcontains the givenkey; otherwise returnsfalse.- Specified by:
containsKeyin interfaceMapOutlet<K,V, IO> - Specified by:
containsKeyin classAbstractMapInoutlet<K,V, V, IO, IO>
-
get
Description copied from interface:MapOutletReturns the value assocaited with the givenkeyin the current state of thisMapOutlet, if defined; otherwise returnsnull. -
get
Description copied from interface:OutletReturns the current state of thisOutlet. -
keyIterator
Description copied from interface:MapOutletReturns anIteratorover the keys in the current state of thisMapOutlet.- Specified by:
keyIteratorin interfaceMapOutlet<K,V, IO> - Specified by:
keyIteratorin classAbstractMapInoutlet<K,V, V, IO, IO>
-
onRecohereKey
- Overrides:
onRecohereKeyin classAbstractMapInoutlet<K,V, V, IO, IO>
-
onRecohere
protected void onRecohere(int version) - Overrides:
onRecoherein classAbstractMapInoutlet<K,V, V, IO, IO>
-
memoize
-