Class DoubleKeyMap<K1,​K2,​V>

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, java.util.Map<K1,​java.util.Map<K2,​V>>

    public class DoubleKeyMap<K1,​K2,​V>
    extends java.util.HashMap<K1,​java.util.Map<K2,​V>>
    implements java.util.Map<K1,​java.util.Map<K2,​V>>
    See Also:
    Serialized Form
    • Nested Class Summary

      • Nested classes/interfaces inherited from class java.util.AbstractMap

        java.util.AbstractMap.SimpleEntry<K extends java.lang.Object,​V extends java.lang.Object>, java.util.AbstractMap.SimpleImmutableEntry<K extends java.lang.Object,​V extends java.lang.Object>
      • Nested classes/interfaces inherited from interface java.util.Map

        java.util.Map.Entry<K extends java.lang.Object,​V extends java.lang.Object>
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Iterator<V> all()  
      boolean containsKeys​(K1 key1, K2 key2)  
      V get​(K1 key1, K2 key2)  
      java.util.Iterator<java.util.Map.Entry<K2,​V>> iterate​(K1 key)  
      V put​(K1 key1, K2 key2, V value)  
      void putAll​(K1 key1, java.util.Map<K2,​V> map)  
      V removeKey​(K1 key1, K2 key2)  
      boolean removeValue​(K1 key1, K2 key2, V value)  
      • Methods inherited from class java.util.HashMap

        clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
      • Methods inherited from class java.util.AbstractMap

        equals, hashCode, toString
      • Methods inherited from class java.lang.Object

        finalize, getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface java.util.Map

        clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
    • Constructor Detail

      • DoubleKeyMap

        public DoubleKeyMap()
      • DoubleKeyMap

        public DoubleKeyMap​(java.lang.Class<K1> k1Class,
                            java.lang.Class<K2> k2Class,
                            java.lang.Class<V> valueClass)
      • DoubleKeyMap

        public DoubleKeyMap​(java.util.Map<K1,​java.util.Map<K2,​V>> other)
    • Method Detail

      • put

        public V put​(K1 key1,
                     K2 key2,
                     V value)
      • get

        public V get​(K1 key1,
                     K2 key2)
      • containsKeys

        public boolean containsKeys​(K1 key1,
                                    K2 key2)
      • putAll

        public void putAll​(K1 key1,
                           java.util.Map<K2,​V> map)
      • removeValue

        public boolean removeValue​(K1 key1,
                                   K2 key2,
                                   V value)
      • removeKey

        public V removeKey​(K1 key1,
                           K2 key2)
      • iterate

        public java.util.Iterator<java.util.Map.Entry<K2,​V>> iterate​(K1 key)
      • all

        public java.util.Iterator<V> all()