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:
Externalizable, Serializable, Cloneable, Iterable<V>, Map<K,V>, BiMap<K, V>, MutableBiMap<K, V>, InternalIterable<V>, MapIterable<K, V>, MutableMapIterable<K, V>, RichIterable<V>
A
MutableBiMap which uses two hash tables as its underlying data store.- Since:
- 4.2
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class AbstractMutableBiMap
AbstractMutableBiMap.EntrySet, AbstractMutableBiMap.KeySet, AbstractMutableBiMap.ValuesCollection -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <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) withKeysValues(K key, V value) withKeysValues(K key1, V value1, K key2, V value2) Methods inherited from class AbstractMutableBiMap
asSynchronized, asUnmodifiable, clear, clone, collect, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectIf, collectInt, collectKeysUnique, 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, zipWithIndexMethods inherited from class 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, zipWithIndexMethods inherited from interface Externalizable
readExternal, writeExternalMethods inherited from interface InternalIterable
forEach, forEachWith, forEachWithIndexMethods inherited from interface Map
compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, equals, get, hashCode, isEmpty, merge, putIfAbsent, remove, replace, replace, replaceAll, sizeMethods inherited from interface MapIterable
containsKey, containsValue, detect, detectOptional, equals, forEachKey, forEachKeyValue, get, getIfAbsent, getIfAbsentValue, getIfAbsentWith, hashCode, ifPresentApply, injectIntoKeyValue, keysView, keyValuesView, parallelStream, spliterator, stream, toString, valuesViewMethods inherited from interface MutableBiMap
aggregateBy, aggregateBy, reduceBy, withMap, withMapIterableMethods inherited from interface MutableMapIterable
add, aggregateInPlaceBy, countBy, countByEach, countByWith, forEach, getOrDefault, putAllMapIterable, putPair, removeAllKeys, removeIfMethods inherited from interface 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, reduceBy, 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 Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
-
Constructor Details
-
HashBiMap
public HashBiMap() -
HashBiMap
public HashBiMap(int initialSize) -
HashBiMap
-
HashBiMap
-
-
Method Details
-
newMap
-
newWithKeysValues
-
newWithKeysValues
-
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
-
withKeysValues
-
withKeysValues
-
withKeysValues
-