Class TransposeDataList
- java.lang.Object
-
- com.datumbox.framework.common.dataobjects.AbstractDataStructure<T>
-
- com.datumbox.framework.common.dataobjects.AbstractDataStructureMap<Map<Object,FlatDataList>>
-
- com.datumbox.framework.common.dataobjects.TransposeDataList
-
- All Implemented Interfaces:
Serializable
public class TransposeDataList extends AbstractDataStructureMap<Map<Object,FlatDataList>>
Data structure which stores internally a Map- Author:
- Vasilis Vryniotis
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.datumbox.framework.common.dataobjects.AbstractDataStructure
internalData
-
-
Constructor Summary
Constructors Constructor Description TransposeDataList()Default constructor which initializes the internal data with a LinkedHashMap.TransposeDataList(Map<Object,FlatDataList> internalData)Constructor that initializes the internal data with the provided map.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<Map.Entry<Object,FlatDataList>>entrySet()Returns the entrySet of the internal map.booleanequals(Object o)FlatDataListget(Object key)Returns the value which is associated with the provided key.inthashCode()Set<Object>keySet()Returns the keySet of the internal map.FlatDataListput(Object key, FlatDataList value)Adds a particular key-value into the internal map.FlatDataListremove(Object key)Removes a particular key from the internal map and returns the value associated with that key if present in the map.Collection<FlatDataList>values()Returns the values of the internal map.-
Methods inherited from class com.datumbox.framework.common.dataobjects.AbstractDataStructureMap
clear, containsKey, isEmpty, size
-
-
-
-
Constructor Detail
-
TransposeDataList
public TransposeDataList()
Default constructor which initializes the internal data with a LinkedHashMap.
-
TransposeDataList
public TransposeDataList(Map<Object,FlatDataList> internalData)
Constructor that initializes the internal data with the provided map.- Parameters:
internalData-
-
-
Method Detail
-
remove
public final FlatDataList remove(Object key)
Removes a particular key from the internal map and returns the value associated with that key if present in the map.- Parameters:
key-- Returns:
-
get
public final FlatDataList get(Object key)
Returns the value which is associated with the provided key.- Parameters:
key-- Returns:
-
put
public final FlatDataList put(Object key, FlatDataList value)
Adds a particular key-value into the internal map. It returns the previous value which was associated with that key.- Parameters:
key-value-- Returns:
-
entrySet
public final Set<Map.Entry<Object,FlatDataList>> entrySet()
Returns the entrySet of the internal map.- Returns:
-
values
public final Collection<FlatDataList> values()
Returns the values of the internal map.- Returns:
-
-