Class BiHashMap<K,​V>

  • Type Parameters:
    K - key
    V - value
    All Implemented Interfaces:
    <K,​V>

    public class BiHashMap<K,​V>
    extends 
    implements <K,​V>
    This is not a concurrent map.
    Author:
    Rui Gu (https://github.com/jackygurui)
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface java.util.

        < extends ,​ extends >
    • Constructor Summary

      Constructors 
      Constructor Description
      BiHashMap()  
    • Constructor Detail

      • BiHashMap

        public BiHashMap()
    • Method Detail

      • size

        public int size()
        Specified by:
         in interface <K,​V>
      • isEmpty

        public boolean isEmpty()
        Specified by:
         in interface <K,​V>
      • containsKey

        public boolean containsKey​( key)
        Specified by:
         in interface <K,​V>
      • containsValue

        public boolean containsValue​( value)
        Specified by:
         in interface <K,​V>
      • get

        public  key)
        Specified by:
         in interface <K,​V>
      • reverseGet

        public  key)
      • put

        public V put​(K key,
                     V value)
        Specified by:
         in interface <K,​V>
      • remove

        public  key)
        Specified by:
         in interface <K,​V>
      • putAll

        public void putAll​(<? extends K,​? extends V> m)
        Specified by:
         in interface <K,​V>
      • clear

        public void clear()
        Specified by:
         in interface <K,​V>
      • keySet

        public <K> keySet()
        Specified by:
         in interface <K,​V>
      • valueSet

        public <V> valueSet()
      • values

        public <V> values()
        Specified by:
         in interface <K,​V>
      • keys

        public <K> keys()
      • entrySet

        public <<K,​V>> entrySet()
        Specified by:
         in interface <K,​V>
      • reverseEntrySet

        public <<V,​K>> reverseEntrySet()
      • makeImmutable

        public void makeImmutable()