Module omix.api

Class DoubleIndexedMap<T>

java.lang.Object
java.util.AbstractMap<K,​V>
java.util.TreeMap<Long,​T>
omix.util.collections.DoubleIndexedMap<T>
Type Parameters:
T - type of the collected objects
All Implemented Interfaces:
Serializable, Cloneable, Map<Long,​T>, NavigableMap<Long,​T>, SortedMap<Long,​T>

public class DoubleIndexedMap<T>
extends TreeMap<Long,​T>
This class collects objects in association with two indexes i and j.
Author:
Dr. Peter Droste, Omix Visualization
See Also:
Serialized Form
  • Constructor Details

  • Method Details

    • put

      public void put​(int i, int j, T object)
      put an object in association with two indexes i and j.
      Parameters:
      i - index
      j - index
      object - to be put
    • get

      public T get​(int i, int j)
      Get object associated with two indexes i and j.
      Parameters:
      i - index
      j - index
      Returns:
      found object