Package ca.uqac.lif.cep.tuples
Class TupleMap
java.lang.Object
ca.uqac.lif.cep.tuples.Tuple
ca.uqac.lif.cep.tuples.TupleMap
Implementation of a named tuple based on the
Map class.
This named tuple is mutable: its contents can be modified during its
life cycle. This should be contrasted with the TupleFixed,
whose contents are set at instantiation and cannot be changed
afterwards.- Author:
- Sylvain Hallé
-
Nested Class Summary
Nested classes/interfaces inherited from class ca.uqac.lif.cep.tuples.Tuple
Tuple.MapEntry<K,V> -
Field Summary
FieldsModifier and TypeFieldDescriptionThe contents of the named tuple -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface ca.uqac.lif.cep.Duplicable
duplicateMethods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Field Details
-
m_contents
The contents of the named tuple
-
-
Constructor Details
-
TupleMap
public TupleMap()Creates a new named tple -
TupleMap
-
TupleMap
Creates a new named tuple by copying the contents of an existing named tuple- Parameters:
ntm- The named tuple to copy from
-
-
Method Details
-
clear
public void clear() -
containsKey
- Specified by:
containsKeyin interfaceMap<String,Object>
-
containsValue
- Specified by:
containsValuein interfaceMap<String,Object>
-
entrySet
-
equals
-
get
-
hashCode
public int hashCode() -
isEmpty
public boolean isEmpty() -
keySet
-
put
-
putAll
-
remove
-
size
public int size() -
values
-
toString
-
duplicate
-