Class HashBiMap<K,V>
- java.lang.Object
-
- org.eclipse.collections.impl.bimap.AbstractBiMap<K,V>
-
- org.eclipse.collections.impl.bimap.mutable.AbstractMutableBiMap<K,V>
-
- org.eclipse.collections.impl.bimap.mutable.HashBiMap<K,V>
-
- All Implemented Interfaces:
java.io.Externalizable
,java.io.Serializable
,java.lang.Cloneable
,java.lang.Iterable<V>
,java.util.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 java.io.Externalizable
AMutableBiMap
which uses two hash tables as its underlying data store.- Since:
- 4.2
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.eclipse.collections.impl.bimap.mutable.AbstractMutableBiMap
AbstractMutableBiMap.EntrySet, AbstractMutableBiMap.KeySet, AbstractMutableBiMap.ValuesCollection
-
-
Field Summary
Fields Modifier and Type Field Description private static long
serialVersionUID
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <K,V>
HashBiMap<K,V>newMap()
static <K,V>
HashBiMap<K,V>newWithKeysValues(K key, V value)
static <K,V>
HashBiMap<K,V>newWithKeysValues(K key1, V value1, K key2, V value2)
static <K,V>
HashBiMap<K,V>newWithKeysValues(K key1, V value1, K key2, V value2, K key3, V value3)
static <K,V>
HashBiMap<K,V>newWithKeysValues(K key1, V value1, K key2, V value2, K key3, V value3, K key4, V value4)
HashBiMap<K,V>
withKeysValues(K key, V value)
HashBiMap<K,V>
withKeysValues(K key1, V value1, K key2, V value2)
HashBiMap<K,V>
withKeysValues(K key1, V value1, K key2, V value2, K key3, V value3)
HashBiMap<K,V>
withKeysValues(K key1, V value1, K key2, V value2, K key3, V value3, K key4, V value4)
-
Methods inherited from class org.eclipse.collections.impl.bimap.mutable.AbstractMutableBiMap
asSynchronized, asUnmodifiable, clear, clone, collect, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectIf, collectInt, collectLong, collectShort, collectValues, collectWith, entrySet, flatCollect, flip, flipUniqueValues, forcePut, forEachValue, getDelegate, getIfAbsentPut, getIfAbsentPut, getIfAbsentPutWith, getIfAbsentPutWithKey, getInverse, groupBy, groupByEach, groupByUniqueKey, inverse, iterator, keySet, newEmpty, partition, partitionWith, put, putAll, readExternal, reject, reject, rejectWith, remove, removeKey, select, select, selectInstancesOf, selectWith, sumByDouble, sumByFloat, sumByInt, sumByLong, tap, toImmutable, updateValue, updateValueWith, values, withAllKeyValueArguments, withAllKeyValues, withKeyValue, withoutAllKeys, withoutKey, writeExternal, zip, zipWithIndex
-
Methods inherited from class org.eclipse.collections.impl.bimap.AbstractBiMap
allSatisfy, allSatisfyWith, anySatisfy, anySatisfyWith, appendString, appendString, appendString, asLazy, chunk, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectIf, collectInt, collectLong, collectShort, collectWith, contains, containsAll, containsAllArguments, containsAllIterable, containsKey, containsValue, count, countWith, detect, detect, detectIfNone, detectOptional, detectOptional, detectWith, detectWithIfNone, detectWithOptional, each, equals, flatCollect, flatCollectBoolean, flatCollectByte, flatCollectChar, flatCollectDouble, flatCollectFloat, flatCollectInt, flatCollectLong, flatCollectShort, forEachKey, forEachKeyValue, forEachWith, forEachWithIndex, get, getFirst, getIfAbsent, getIfAbsentValue, getIfAbsentWith, getLast, getOnly, getOrDefault, groupBy, groupByEach, groupByUniqueKey, hashCode, ifPresentApply, injectInto, injectInto, injectInto, injectInto, injectInto, into, isEmpty, keysView, keyValuesView, makeString, makeString, makeString, max, max, maxBy, min, min, minBy, noneSatisfy, noneSatisfyWith, notEmpty, reject, rejectWith, select, selectWith, size, sumOfDouble, sumOfFloat, sumOfInt, sumOfLong, toArray, toArray, toBag, toBiMap, toList, toMap, toMap, toSet, toSortedBag, toSortedBag, toSortedList, toSortedList, toSortedMap, toSortedMap, toSortedSet, toSortedSet, toString, valuesView, zip, zipWithIndex
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.eclipse.collections.api.InternalIterable
forEach, forEachWith, forEachWithIndex
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, equals, forEach, get, hashCode, isEmpty, merge, putIfAbsent, remove, replace, replace, replaceAll, size
-
Methods inherited from interface org.eclipse.collections.api.map.MapIterable
containsKey, containsValue, detect, detectOptional, equals, forEachKey, forEachKeyValue, get, getIfAbsent, getIfAbsentValue, getIfAbsentWith, hashCode, ifPresentApply, injectIntoKeyValue, keysView, keyValuesView, parallelStream, spliterator, stream, toString, valuesView
-
Methods inherited from interface org.eclipse.collections.api.bimap.MutableBiMap
aggregateBy, aggregateBy, withMap, withMapIterable
-
Methods inherited from interface org.eclipse.collections.api.map.MutableMapIterable
add, aggregateInPlaceBy, countBy, countByEach, countByWith, getOrDefault, putAllMapIterable, putPair, removeAllKeys, removeIf
-
Methods inherited from interface org.eclipse.collections.api.RichIterable
aggregateBy, allSatisfy, allSatisfyWith, anySatisfy, anySatisfyWith, appendString, appendString, appendString, asLazy, chunk, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectIf, collectInt, collectLong, collectShort, collectWith, contains, containsAll, containsAllArguments, containsAllIterable, containsAny, containsAnyIterable, containsBy, containsNone, containsNoneIterable, count, countBy, countByEach, countByWith, countWith, detect, detectIfNone, detectOptional, detectWith, detectWithIfNone, detectWithOptional, each, flatCollect, flatCollectBoolean, flatCollectByte, flatCollectChar, flatCollectDouble, flatCollectFloat, flatCollectInt, flatCollectLong, flatCollectShort, flatCollectWith, flatCollectWith, forEach, getAny, getFirst, getLast, getOnly, groupBy, groupByAndCollect, groupByEach, groupByUniqueKey, injectInto, injectInto, injectInto, injectInto, injectInto, injectIntoDouble, injectIntoFloat, injectIntoInt, injectIntoLong, into, isEmpty, makeString, makeString, makeString, makeString, max, max, maxBy, maxByOptional, maxOptional, maxOptional, min, min, minBy, minByOptional, minOptional, minOptional, noneSatisfy, noneSatisfyWith, notEmpty, reduce, reduceInPlace, reduceInPlace, reject, rejectWith, select, selectWith, size, summarizeDouble, summarizeFloat, summarizeInt, summarizeLong, sumOfDouble, sumOfFloat, sumOfInt, sumOfLong, toArray, toArray, toBag, toBiMap, toImmutableBag, toImmutableBiMap, toImmutableList, toImmutableMap, toImmutableSet, toImmutableSortedBag, toImmutableSortedBag, toImmutableSortedBagBy, toImmutableSortedList, toImmutableSortedList, toImmutableSortedListBy, toImmutableSortedSet, toImmutableSortedSet, toImmutableSortedSetBy, toList, toMap, toMap, toSet, toSortedBag, toSortedBag, toSortedBagBy, toSortedList, toSortedList, toSortedListBy, toSortedMap, toSortedMap, toSortedMapBy, toSortedSet, toSortedSet, toSortedSetBy, zip, zipWithIndex
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
-
Method Detail
-
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 key1, V value1, K key2, V value2, K key3, V value3)
-
-