- java.lang.Object
-
- swim.streamlet.AbstractMapInoutlet<K,VI,VO,I,Map<K,VO>>
-
- swim.streamlet.combinator.MapFieldValuesOperator<K,VI,VO,I>
-
- All Implemented Interfaces:
Inlet<I>
,Inoutlet<I,Map<K,VO>>
,MapInlet<K,VI,I>
,MapInoutlet<K,VI,VO,I,Map<K,VO>>
,MapOutlet<K,VO,Map<K,VO>>
,Outlet<Map<K,VO>>
- Direct Known Subclasses:
MapFieldValuesCombinator
public abstract class MapFieldValuesOperator<K,VI,VO,I> extends AbstractMapInoutlet<K,VI,VO,I,Map<K,VO>>
-
-
Constructor Summary
Constructors Constructor Description MapFieldValuesOperator()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description boolean
containsKey(K key)
Returnstrue
if the current state of thisMapOutlet
contains the givenkey
; otherwise returnsfalse
.abstract VO
evaluate(K key, VI value)
Map<K,VO>
get()
Returns the current state of thisOutlet
.VO
get(K key)
Returns the value assocaited with the givenkey
in the current state of thisMapOutlet
, if defined; otherwise returnsnull
.Iterator<K>
keyIterator()
Returns anIterator
over the keys in the current state of thisMapOutlet
.-
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, onRecohere, onRecohereKey, outlet, outputIterator, recohere, recohereInput, recohereInputKey, recohereKey, recohereOutput, recohereOutputKey, unbindInput, unbindOutput, unbindOutputs, willDecohere, willDecohereKey, willRecohere, willRecohereKey
-
-
-
-
Method Detail
-
containsKey
public boolean containsKey(K key)
Description copied from interface:MapOutlet
Returnstrue
if the current state of thisMapOutlet
contains the givenkey
; otherwise returnsfalse
.- Specified by:
containsKey
in interfaceMapOutlet<K,VI,VO>
- Specified by:
containsKey
in classAbstractMapInoutlet<K,VI,VO,I,Map<K,VO>>
-
get
public VO get(K key)
Description copied from interface:MapOutlet
Returns the value assocaited with the givenkey
in the current state of thisMapOutlet
, if defined; otherwise returnsnull
.
-
get
public Map<K,VO> get()
Description copied from interface:Outlet
Returns the current state of thisOutlet
.
-
keyIterator
public Iterator<K> keyIterator()
Description copied from interface:MapOutlet
Returns anIterator
over the keys in the current state of thisMapOutlet
.- Specified by:
keyIterator
in interfaceMapOutlet<K,VI,VO>
- Specified by:
keyIterator
in classAbstractMapInoutlet<K,VI,VO,I,Map<K,VO>>
-
-