Class DoubleKeyMap<Key1,​Key2,​Value>


  • public class DoubleKeyMap<Key1,​Key2,​Value>
    extends java.lang.Object
    Sometimes we need to map a key to a value but key is two pieces of data. This nested hash table saves creating a single key each time we access map; avoids mem creation.
    • Constructor Detail

      • DoubleKeyMap

        public DoubleKeyMap()
    • Method Detail

      • values

        public java.util.Collection<Value> values​(Key1 k1)
        Get all values associated with primary key
      • keySet

        public java.util.Set<Key1> keySet()
        get all primary keys
      • keySet

        public java.util.Set<Key2> keySet​(Key1 k1)
        get all secondary keys associated with a primary key
      • values

        public java.util.Collection<Value> values()