Class HashBiMap<K,V>
- java.lang.Object
-
- org.eclipse.collections.impl.bimap.AbstractBiMap<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>
public class HashBiMap<K,V> extends AbstractBiMap<K,V> implements Externalizable
AMutableBiMapwhich uses two hash tables as its underlying data store.- Since:
- 4.2
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description MutableBiMap<K,V>asSynchronized()MutableBiMap<K,V>asUnmodifiable()voidclear()MutableBiMap<K,V>clone()<VV> MutableBag<VV>collect(Function<? super V,? extends VV> function)<K2,V2>
HashBiMap<K2,V2>collect(Function2<? super K,? super V,Pair<K2,V2>> function)MutableBooleanBagcollectBoolean(BooleanFunction<? super V> booleanFunction)MutableByteBagcollectByte(ByteFunction<? super V> byteFunction)MutableCharBagcollectChar(CharFunction<? super V> charFunction)MutableDoubleBagcollectDouble(DoubleFunction<? super V> doubleFunction)MutableFloatBagcollectFloat(FloatFunction<? super V> floatFunction)<VV> MutableBag<VV>collectIf(Predicate<? super V> predicate, Function<? super V,? extends VV> function)MutableIntBagcollectInt(IntFunction<? super V> intFunction)MutableLongBagcollectLong(LongFunction<? super V> longFunction)MutableShortBagcollectShort(ShortFunction<? super V> shortFunction)<R> HashBiMap<K,R>collectValues(Function2<? super K,? super V,? extends R> function)<P,VV>
MutableBag<VV>collectWith(Function2<? super V,? super P,? extends VV> function, P parameter)Set<Map.Entry<K,V>>entrySet()<VV> MutableBag<VV>flatCollect(Function<? super V,? extends Iterable<VV>> function)MutableSetMultimap<V,K>flip()MutableBiMap<V,K>flipUniqueValues()VforcePut(K key, V value)voidforEachValue(Procedure<? super V> procedure)VgetIfAbsentPut(K key, Function0<? extends V> function)VgetIfAbsentPut(K key, V value)<P> VgetIfAbsentPutWith(K key, Function<? super P,? extends V> function, P parameter)VgetIfAbsentPutWithKey(K key, Function<? super K,? extends V> function)<VV> MutableSetMultimap<VV,V>groupBy(Function<? super V,? extends VV> function)<VV> MutableSetMultimap<VV,V>groupByEach(Function<? super V,? extends Iterable<VV>> function)<VV> MutableBiMap<VV,V>groupByUniqueKey(Function<? super V,? extends VV> function)MutableBiMap<V,K>inverse()Iterator<V>iterator()Set<K>keySet()HashBiMap<K,V>newEmpty()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)PartitionMutableSet<V>partition(Predicate<? super V> predicate)<P> PartitionMutableSet<V>partitionWith(Predicate2<? super V,? super P> predicate, P parameter)Vput(K key, V value)voidputAll(Map<? extends K,? extends V> map)voidreadExternal(ObjectInput in)MutableSet<V>reject(Predicate<? super V> predicate)HashBiMap<K,V>reject(Predicate2<? super K,? super V> predicate)<P> MutableSet<V>rejectWith(Predicate2<? super V,? super P> predicate, P parameter)Vremove(Object key)VremoveKey(K key)MutableSet<V>select(Predicate<? super V> predicate)HashBiMap<K,V>select(Predicate2<? super K,? super V> predicate)<S> MutableSet<S>selectInstancesOf(Class<S> clazz)<P> MutableSet<V>selectWith(Predicate2<? super V,? super P> predicate, P parameter)<V1> MutableObjectDoubleMap<V1>sumByDouble(Function<? super V,? extends V1> groupBy, DoubleFunction<? super V> function)<V1> MutableObjectDoubleMap<V1>sumByFloat(Function<? super V,? extends V1> groupBy, FloatFunction<? super V> function)<V1> MutableObjectLongMap<V1>sumByInt(Function<? super V,? extends V1> groupBy, IntFunction<? super V> function)<V1> MutableObjectLongMap<V1>sumByLong(Function<? super V,? extends V1> groupBy, LongFunction<? super V> function)MutableBiMap<K,V>tap(Procedure<? super V> procedure)ImmutableBiMap<K,V>toImmutable()VupdateValue(K key, Function0<? extends V> factory, Function<? super V,? extends V> function)<P> VupdateValueWith(K key, Function0<? extends V> factory, Function2<? super V,? super P,? extends V> function, P parameter)Collection<V>values()MutableBiMap<K,V>withAllKeyValueArguments(Pair<? extends K,? extends V>... keyValuePairs)MutableBiMap<K,V>withAllKeyValues(Iterable<? extends Pair<? extends K,? extends V>> keyValues)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)MutableBiMap<K,V>withKeyValue(K key, V value)MutableBiMap<K,V>withoutAllKeys(Iterable<? extends K> keys)MutableBiMap<K,V>withoutKey(K key)voidwriteExternal(ObjectOutput out)<S> MutableSet<Pair<V,S>>zip(Iterable<S> that)Deprecated.in 8.0.MutableSet<Pair<V,Integer>>zipWithIndex()Deprecated.in 8.0.-
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 interface java.io.Externalizable
readExternal, writeExternal
-
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, 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, forEach, 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
-
-
-
-
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)
-
withKeysValues
public HashBiMap<K,V> withKeysValues(K key1, V value1, K key2, V value2, K key3, V value3, K key4, V value4)
-
newEmpty
public HashBiMap<K,V> newEmpty()
- Specified by:
newEmptyin interfaceMutableBiMap<K,V>- Specified by:
newEmptyin interfaceMutableMapIterable<K,V>
-
withKeyValue
public MutableBiMap<K,V> withKeyValue(K key, V value)
- Specified by:
withKeyValuein interfaceMutableBiMap<K,V>- Specified by:
withKeyValuein interfaceMutableMapIterable<K,V>
-
withAllKeyValues
public MutableBiMap<K,V> withAllKeyValues(Iterable<? extends Pair<? extends K,? extends V>> keyValues)
- Specified by:
withAllKeyValuesin interfaceMutableBiMap<K,V>- Specified by:
withAllKeyValuesin interfaceMutableMapIterable<K,V>
-
withAllKeyValueArguments
public MutableBiMap<K,V> withAllKeyValueArguments(Pair<? extends K,? extends V>... keyValuePairs)
- Specified by:
withAllKeyValueArgumentsin interfaceMutableBiMap<K,V>- Specified by:
withAllKeyValueArgumentsin interfaceMutableMapIterable<K,V>
-
withoutKey
public MutableBiMap<K,V> withoutKey(K key)
- Specified by:
withoutKeyin interfaceMutableBiMap<K,V>- Specified by:
withoutKeyin interfaceMutableMapIterable<K,V>
-
withoutAllKeys
public MutableBiMap<K,V> withoutAllKeys(Iterable<? extends K> keys)
- Specified by:
withoutAllKeysin interfaceMutableBiMap<K,V>- Specified by:
withoutAllKeysin interfaceMutableMapIterable<K,V>
-
inverse
public MutableBiMap<V,K> inverse()
- Specified by:
inversein interfaceBiMap<K,V>- Specified by:
inversein interfaceMutableBiMap<K,V>
-
flip
public MutableSetMultimap<V,K> flip()
- Specified by:
flipin interfaceBiMap<K,V>- Specified by:
flipin interfaceMapIterable<K,V>- Specified by:
flipin interfaceMutableBiMap<K,V>- Specified by:
flipin interfaceMutableMapIterable<K,V>
-
flipUniqueValues
public MutableBiMap<V,K> flipUniqueValues()
- Specified by:
flipUniqueValuesin interfaceBiMap<K,V>- Specified by:
flipUniqueValuesin interfaceMapIterable<K,V>- Specified by:
flipUniqueValuesin interfaceMutableBiMap<K,V>- Specified by:
flipUniqueValuesin interfaceMutableMapIterable<K,V>
-
put
public V put(K key, V value)- Specified by:
putin interfaceMap<K,V>- Specified by:
putin interfaceMutableBiMap<K,V>
-
forcePut
public V forcePut(K key, V value)- Specified by:
forcePutin interfaceMutableBiMap<K,V>
-
putAll
public void putAll(Map<? extends K,? extends V> map)
-
removeKey
public V removeKey(K key)
- Specified by:
removeKeyin interfaceMutableMapIterable<K,V>
-
getIfAbsentPut
public V getIfAbsentPut(K key, V value)- Specified by:
getIfAbsentPutin interfaceMutableMapIterable<K,V>
-
getIfAbsentPut
public V getIfAbsentPut(K key, Function0<? extends V> function)- Specified by:
getIfAbsentPutin interfaceMutableMapIterable<K,V>
-
getIfAbsentPutWith
public <P> V getIfAbsentPutWith(K key, Function<? super P,? extends V> function, P parameter)- Specified by:
getIfAbsentPutWithin interfaceMutableMapIterable<K,V>
-
getIfAbsentPutWithKey
public V getIfAbsentPutWithKey(K key, Function<? super K,? extends V> function)- Specified by:
getIfAbsentPutWithKeyin interfaceMutableMapIterable<K,V>
-
updateValue
public V updateValue(K key, Function0<? extends V> factory, Function<? super V,? extends V> function)- Specified by:
updateValuein interfaceMutableMapIterable<K,V>
-
updateValueWith
public <P> V updateValueWith(K key, Function0<? extends V> factory, Function2<? super V,? super P,? extends V> function, P parameter)- Specified by:
updateValueWithin interfaceMutableMapIterable<K,V>
-
values
public Collection<V> values()
-
toImmutable
public ImmutableBiMap<K,V> toImmutable()
- Specified by:
toImmutablein interfaceBiMap<K,V>- Specified by:
toImmutablein interfaceMapIterable<K,V>- Specified by:
toImmutablein interfaceMutableMapIterable<K,V>
-
asSynchronized
public MutableBiMap<K,V> asSynchronized()
- Specified by:
asSynchronizedin interfaceMutableBiMap<K,V>- Specified by:
asSynchronizedin interfaceMutableMapIterable<K,V>
-
asUnmodifiable
public MutableBiMap<K,V> asUnmodifiable()
- Specified by:
asUnmodifiablein interfaceMutableBiMap<K,V>- Specified by:
asUnmodifiablein interfaceMutableMapIterable<K,V>
-
clone
public MutableBiMap<K,V> clone()
- Specified by:
clonein interfaceMutableBiMap<K,V>
-
tap
public MutableBiMap<K,V> tap(Procedure<? super V> procedure)
- Specified by:
tapin interfaceBiMap<K,V>- Specified by:
tapin interfaceMapIterable<K,V>- Specified by:
tapin interfaceMutableBiMap<K,V>- Specified by:
tapin interfaceMutableMapIterable<K,V>- Specified by:
tapin interfaceRichIterable<K>
-
select
public HashBiMap<K,V> select(Predicate2<? super K,? super V> predicate)
- Specified by:
selectin interfaceBiMap<K,V>- Specified by:
selectin interfaceMapIterable<K,V>- Specified by:
selectin interfaceMutableBiMap<K,V>- Specified by:
selectin interfaceMutableMapIterable<K,V>
-
reject
public HashBiMap<K,V> reject(Predicate2<? super K,? super V> predicate)
- Specified by:
rejectin interfaceBiMap<K,V>- Specified by:
rejectin interfaceMapIterable<K,V>- Specified by:
rejectin interfaceMutableBiMap<K,V>- Specified by:
rejectin interfaceMutableMapIterable<K,V>
-
collect
public <K2,V2> HashBiMap<K2,V2> collect(Function2<? super K,? super V,Pair<K2,V2>> function)
- Specified by:
collectin interfaceBiMap<K,V>- Specified by:
collectin interfaceMapIterable<K,V>- Specified by:
collectin interfaceMutableBiMap<K,V>- Specified by:
collectin interfaceMutableMapIterable<K,V>
-
collectValues
public <R> HashBiMap<K,R> collectValues(Function2<? super K,? super V,? extends R> function)
- Specified by:
collectValuesin interfaceBiMap<K,V>- Specified by:
collectValuesin interfaceMapIterable<K,V>- Specified by:
collectValuesin interfaceMutableBiMap<K,V>- Specified by:
collectValuesin interfaceMutableMapIterable<K,V>
-
collect
public <VV> MutableBag<VV> collect(Function<? super V,? extends VV> function)
- Specified by:
collectin interfaceRichIterable<K>
-
collectWith
public <P,VV> MutableBag<VV> collectWith(Function2<? super V,? super P,? extends VV> function, P parameter)
- Specified by:
collectWithin interfaceRichIterable<K>
-
flatCollect
public <VV> MutableBag<VV> flatCollect(Function<? super V,? extends Iterable<VV>> function)
- Specified by:
flatCollectin interfaceRichIterable<K>
-
collectBoolean
public MutableBooleanBag collectBoolean(BooleanFunction<? super V> booleanFunction)
- Specified by:
collectBooleanin interfaceRichIterable<K>
-
collectByte
public MutableByteBag collectByte(ByteFunction<? super V> byteFunction)
- Specified by:
collectBytein interfaceRichIterable<K>
-
collectChar
public MutableCharBag collectChar(CharFunction<? super V> charFunction)
- Specified by:
collectCharin interfaceRichIterable<K>
-
collectDouble
public MutableDoubleBag collectDouble(DoubleFunction<? super V> doubleFunction)
- Specified by:
collectDoublein interfaceRichIterable<K>
-
collectFloat
public MutableFloatBag collectFloat(FloatFunction<? super V> floatFunction)
- Specified by:
collectFloatin interfaceRichIterable<K>
-
collectInt
public MutableIntBag collectInt(IntFunction<? super V> intFunction)
- Specified by:
collectIntin interfaceRichIterable<K>
-
collectLong
public MutableLongBag collectLong(LongFunction<? super V> longFunction)
- Specified by:
collectLongin interfaceRichIterable<K>
-
collectShort
public MutableShortBag collectShort(ShortFunction<? super V> shortFunction)
- Specified by:
collectShortin interfaceRichIterable<K>
-
collectIf
public <VV> MutableBag<VV> collectIf(Predicate<? super V> predicate, Function<? super V,? extends VV> function)
- Specified by:
collectIfin interfaceRichIterable<K>
-
zipWithIndex
@Deprecated public MutableSet<Pair<V,Integer>> zipWithIndex()
Deprecated.in 8.0. UseOrderedIterable.zipWithIndex()instead.- Specified by:
zipWithIndexin interfaceBiMap<K,V>- Specified by:
zipWithIndexin interfaceMutableBiMap<K,V>- Specified by:
zipWithIndexin interfaceMutableMapIterable<K,V>- Specified by:
zipWithIndexin interfaceRichIterable<K>
-
groupBy
public <VV> MutableSetMultimap<VV,V> groupBy(Function<? super V,? extends VV> function)
- Specified by:
groupByin interfaceBiMap<K,V>- Specified by:
groupByin interfaceMutableBiMap<K,V>- Specified by:
groupByin interfaceMutableMapIterable<K,V>- Specified by:
groupByin interfaceRichIterable<K>
-
groupByEach
public <VV> MutableSetMultimap<VV,V> groupByEach(Function<? super V,? extends Iterable<VV>> function)
- Specified by:
groupByEachin interfaceBiMap<K,V>- Specified by:
groupByEachin interfaceMutableBiMap<K,V>- Specified by:
groupByEachin interfaceMutableMapIterable<K,V>- Specified by:
groupByEachin interfaceRichIterable<K>
-
zip
@Deprecated public <S> MutableSet<Pair<V,S>> zip(Iterable<S> that)
Deprecated.in 8.0. UseOrderedIterable.zip(Iterable)instead.- Specified by:
zipin interfaceBiMap<K,V>- Specified by:
zipin interfaceMutableBiMap<K,V>- Specified by:
zipin interfaceMutableMapIterable<K,V>- Specified by:
zipin interfaceRichIterable<K>
-
select
public MutableSet<V> select(Predicate<? super V> predicate)
- Specified by:
selectin interfaceBiMap<K,V>- Specified by:
selectin interfaceMutableBiMap<K,V>- Specified by:
selectin interfaceMutableMapIterable<K,V>- Specified by:
selectin interfaceRichIterable<K>
-
selectWith
public <P> MutableSet<V> selectWith(Predicate2<? super V,? super P> predicate, P parameter)
- Specified by:
selectWithin interfaceBiMap<K,V>- Specified by:
selectWithin interfaceMutableBiMap<K,V>- Specified by:
selectWithin interfaceMutableMapIterable<K,V>- Specified by:
selectWithin interfaceRichIterable<K>
-
reject
public MutableSet<V> reject(Predicate<? super V> predicate)
- Specified by:
rejectin interfaceBiMap<K,V>- Specified by:
rejectin interfaceMutableBiMap<K,V>- Specified by:
rejectin interfaceMutableMapIterable<K,V>- Specified by:
rejectin interfaceRichIterable<K>
-
rejectWith
public <P> MutableSet<V> rejectWith(Predicate2<? super V,? super P> predicate, P parameter)
- Specified by:
rejectWithin interfaceBiMap<K,V>- Specified by:
rejectWithin interfaceMutableBiMap<K,V>- Specified by:
rejectWithin interfaceMutableMapIterable<K,V>- Specified by:
rejectWithin interfaceRichIterable<K>
-
partition
public PartitionMutableSet<V> partition(Predicate<? super V> predicate)
- Specified by:
partitionin interfaceBiMap<K,V>- Specified by:
partitionin interfaceMutableBiMap<K,V>- Specified by:
partitionin interfaceMutableMapIterable<K,V>- Specified by:
partitionin interfaceRichIterable<K>
-
partitionWith
public <P> PartitionMutableSet<V> partitionWith(Predicate2<? super V,? super P> predicate, P parameter)
- Specified by:
partitionWithin interfaceBiMap<K,V>- Specified by:
partitionWithin interfaceMutableBiMap<K,V>- Specified by:
partitionWithin interfaceRichIterable<K>
-
forEachValue
public void forEachValue(Procedure<? super V> procedure)
- Specified by:
forEachValuein interfaceMapIterable<K,V>- Overrides:
forEachValuein classAbstractBiMap<K,V>
-
groupByUniqueKey
public <VV> MutableBiMap<VV,V> groupByUniqueKey(Function<? super V,? extends VV> function)
- Specified by:
groupByUniqueKeyin interfaceBiMap<K,V>- Specified by:
groupByUniqueKeyin interfaceMutableBiMap<K,V>- Specified by:
groupByUniqueKeyin interfaceMutableMapIterable<K,V>- Specified by:
groupByUniqueKeyin interfaceRichIterable<K>
-
sumByInt
public <V1> MutableObjectLongMap<V1> sumByInt(Function<? super V,? extends V1> groupBy, IntFunction<? super V> function)
- Specified by:
sumByIntin interfaceMutableMapIterable<K,V>- Specified by:
sumByIntin interfaceRichIterable<K>
-
sumByFloat
public <V1> MutableObjectDoubleMap<V1> sumByFloat(Function<? super V,? extends V1> groupBy, FloatFunction<? super V> function)
- Specified by:
sumByFloatin interfaceMutableMapIterable<K,V>- Specified by:
sumByFloatin interfaceRichIterable<K>
-
sumByLong
public <V1> MutableObjectLongMap<V1> sumByLong(Function<? super V,? extends V1> groupBy, LongFunction<? super V> function)
- Specified by:
sumByLongin interfaceMutableMapIterable<K,V>- Specified by:
sumByLongin interfaceRichIterable<K>
-
sumByDouble
public <V1> MutableObjectDoubleMap<V1> sumByDouble(Function<? super V,? extends V1> groupBy, DoubleFunction<? super V> function)
- Specified by:
sumByDoublein interfaceMutableMapIterable<K,V>- Specified by:
sumByDoublein interfaceRichIterable<K>
-
selectInstancesOf
public <S> MutableSet<S> selectInstancesOf(Class<S> clazz)
- Specified by:
selectInstancesOfin interfaceBiMap<K,V>- Specified by:
selectInstancesOfin interfaceMutableBiMap<K,V>- Specified by:
selectInstancesOfin interfaceMutableMapIterable<K,V>- Specified by:
selectInstancesOfin interfaceRichIterable<K>
-
writeExternal
public void writeExternal(ObjectOutput out) throws IOException
- Throws:
IOException
-
readExternal
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
- Throws:
IOExceptionClassNotFoundException
-
-