Class TransposeDataCollection

  • All Implemented Interfaces:
    Serializable

    public class TransposeDataCollection
    extends AbstractDataStructureMap<Map<Object,​FlatDataCollection>>
    Data structure which stores internally a Map. This data structure is usually used when we want to store the values of a particular variable separately per each category or group. The class provides a number of methods to access and modify the internal map.
    Author:
    Vasilis Vryniotis
    See Also:
    Serialized Form
    • Constructor Detail

      • TransposeDataCollection

        public TransposeDataCollection()
        Default constructor which initializes the internal data with a LinkedHashMap.
      • TransposeDataCollection

        public TransposeDataCollection​(Map<Object,​FlatDataCollection> internalData)
        Constructor that initializes the internal data with the provided map.
        Parameters:
        internalData -
    • Method Detail

      • remove

        public final FlatDataCollection 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 FlatDataCollection get​(Object key)
        Returns the value which is associated with the provided key.
        Parameters:
        key -
        Returns:
      • put

        public final FlatDataCollection put​(Object key,
                                            FlatDataCollection 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:
      • keySet

        public final Set<Object> keySet()
        Returns the keySet of the internal map.
        Returns:
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object