Top Description Fields Constructors Methods
org.eclipse.collections.impl.bimap.mutable

public Class HashBiMap<K, V>

extends AbstractMutableBiMap<K, V>
implements Externalizable
Class Inheritance
All Implemented Interfaces
java.io.Externalizable, java.io.Serializable
Imports
java.io.Externalizable, java.util.Map, org.eclipse.collections.api.bimap.MutableBiMap, org.eclipse.collections.impl.map.mutable.UnifiedMap

A MutableBiMap which uses two hash tables as its underlying data store.
Since
4.2

Field Summary

Modifier and TypeField and Description
private static final long

Constructor Summary

AccessConstructor and Description
public
public
HashBiMap(int initialSize)

public
HashBiMap(Map<K, V> map)

pack-priv
HashBiMap(Map<K, V> keysToValues, Map<V, K> valuesToKeys)

Method Summary

Modifier and TypeMethod and Description
public static <K, V> HashBiMap<K, V>
public static <K, V> HashBiMap<K, V>
newWithKeysValues(K key, V value)

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

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

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

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

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

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

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

Inherited from org.eclipse.collections.impl.bimap.mutable.AbstractMutableBiMap:
asSynchronizedasUnmodifiableclearclonecollectcollectcollectBooleancollectBytecollectCharcollectDoublecollectFloatcollectIfcollectIntcollectKeysUniquecollectLongcollectShortcollectValuescollectWithentrySetflatCollectflipflipUniqueValuesforcePutforEachValuegetDelegategetIfAbsentPutgetIfAbsentPutgetIfAbsentPutWithgetIfAbsentPutWithKeygetInversegroupBygroupByEachgroupByUniqueKeyinverseiteratorkeySetnewEmptypartitionpartitionWithputputAllreadExternalrejectrejectrejectWithremoveremoveKeyselectselectselectInstancesOfselectWithsumByDoublesumByFloatsumByIntsumByLongtaptoImmutableupdateValueupdateValueWithvalueswithAllKeyValueArgumentswithAllKeyValueswithKeyValuewithoutAllKeyswithoutKeywriteExternalzipzipWithIndex

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Constructor Detail

HashBiMapback to summary
public HashBiMap()
HashBiMapback to summary
public HashBiMap(int initialSize)
HashBiMapback to summary
public HashBiMap(Map<K, V> map)
HashBiMapback to summary
pack-priv HashBiMap(Map<K, V> keysToValues, Map<V, K> valuesToKeys)

Method Detail

newMapback to summary
public static <K, V> HashBiMap<K, V> newMap()
newWithKeysValuesback to summary
public static <K, V> HashBiMap<K, V> newWithKeysValues(K key, V value)
newWithKeysValuesback to summary
public static <K, V> HashBiMap<K, V> newWithKeysValues(K key1, V value1, K key2, V value2)
newWithKeysValuesback to summary
public static <K, V> HashBiMap<K, V> newWithKeysValues(K key1, V value1, K key2, V value2, K key3, V value3)
newWithKeysValuesback to summary
public static <K, V> HashBiMap<K, V> newWithKeysValues(K key1, V value1, K key2, V value2, K key3, V value3, K key4, V value4)
withKeysValuesback to summary
public HashBiMap<K, V> withKeysValues(K key, V value)
withKeysValuesback to summary
public HashBiMap<K, V> withKeysValues(K key1, V value1, K key2, V value2)
withKeysValuesback to summary
public HashBiMap<K, V> withKeysValues(K key1, V value1, K key2, V value2, K key3, V value3)
withKeysValuesback to summary
public HashBiMap<K, V> withKeysValues(K key1, V value1, K key2, V value2, K key3, V value3, K key4, V value4)