Class HashBiMap<K,V>

All Implemented Interfaces:
Externalizable, Serializable, Cloneable, Iterable<V>, Map<K,V>, BiMap<K,V>, MutableBiMap<K,V>, InternalIterable<V>, MapIterable<K,V>, MutableMapIterable<K,V>, RichIterable<V>

public class HashBiMap<K,V> extends AbstractMutableBiMap<K,V> implements Externalizable
A MutableBiMap which uses two hash tables as its underlying data store.
Since:
4.2
See Also:
  • Field Details

  • Constructor Details

    • HashBiMap

      public HashBiMap()
    • HashBiMap

      public HashBiMap(int initialSize)
    • HashBiMap

      public HashBiMap(Map<K,V> map)
    • HashBiMap

      HashBiMap(Map<K,V> keysToValues, Map<V,K> valuesToKeys)
  • Method Details

    • newMap

      public static <K, V> HashBiMap<K,V> newMap()
    • newWithKeysValues

      public static <K, V> HashBiMap<K,V> newWithKeysValues(K key, V value)
    • newWithKeysValues

      public static <K, V> HashBiMap<K,V> newWithKeysValues(K key1, V value1, K key2, V value2)
    • newWithKeysValues

      public static <K, V> HashBiMap<K,V> newWithKeysValues(K key1, V value1, K key2, V value2, K key3, V value3)
    • newWithKeysValues

      public static <K, V> HashBiMap<K,V> newWithKeysValues(K key1, V value1, K key2, V value2, K key3, V value3, K key4, V value4)
    • withKeysValues

      public HashBiMap<K,V> withKeysValues(K key, V value)
    • withKeysValues

      public HashBiMap<K,V> withKeysValues(K key1, V value1, K key2, V value2)
    • withKeysValues

      public HashBiMap<K,V> withKeysValues(K key1, V value1, K key2, V value2, K key3, V value3)
    • withKeysValues

      public HashBiMap<K,V> withKeysValues(K key1, V value1, K key2, V value2, K key3, V value3, K key4, V value4)