Class ThreeDimMap

  • All Implemented Interfaces:
    Serializable, Cloneable, Map

    public class ThreeDimMap
    extends TableMap
    A trivial extension of the TableMap to support threedimensional data storage. This class uses its parent 2D dimensional storage to store the third dimension in another map. Note for four, five, six, ... dimensional datastructures, this class can be extended once more. Additionally a n dimensional storage facility could be created by creating a recursive subclass of Map that uses a list of keys.
    See Also:
    Serialized Form
    • Constructor Detail

      • ThreeDimMap

        public ThreeDimMap()
    • Method Detail

      • get

        public Object get​(Object firstdimension,
                          Object seconddimension,
                          Object thirddimension)
        Parameters:
        firstdimension -
        seconddimension -
        thirddimension -
        Returns:
        the object stored at the provided at the coordinates or null if it does not exist
      • put

        public void put​(Object firstdimension,
                        Object seconddimension,
                        Object thirddimension,
                        Object value)
        Stores a value at the provided coordinates.
        Parameters:
        firstdimension -
        seconddimension -
        thirddimension -
        value -