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
AMutableBiMap
which 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()
void
clear()
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)
MutableBooleanBag
collectBoolean(BooleanFunction<? super V> booleanFunction)
MutableByteBag
collectByte(ByteFunction<? super V> byteFunction)
MutableCharBag
collectChar(CharFunction<? super V> charFunction)
MutableDoubleBag
collectDouble(DoubleFunction<? super V> doubleFunction)
MutableFloatBag
collectFloat(FloatFunction<? super V> floatFunction)
<VV> MutableBag<VV>
collectIf(Predicate<? super V> predicate, Function<? super V,? extends VV> function)
MutableIntBag
collectInt(IntFunction<? super V> intFunction)
MutableLongBag
collectLong(LongFunction<? super V> longFunction)
MutableShortBag
collectShort(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()
V
forcePut(K key, V value)
void
forEachValue(Procedure<? super V> procedure)
V
getIfAbsentPut(K key, Function0<? extends V> function)
V
getIfAbsentPut(K key, V value)
<P> V
getIfAbsentPutWith(K key, Function<? super P,? extends V> function, P parameter)
V
getIfAbsentPutWithKey(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)
V
put(K key, V value)
void
putAll(Map<? extends K,? extends V> map)
void
readExternal(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)
V
remove(Object key)
V
removeKey(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()
V
updateValue(K key, Function0<? extends V> factory, Function<? super V,? extends V> function)
<P> V
updateValueWith(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)
void
writeExternal(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:
newEmpty
in interfaceMutableBiMap<K,V>
- Specified by:
newEmpty
in interfaceMutableMapIterable<K,V>
-
withKeyValue
public MutableBiMap<K,V> withKeyValue(K key, V value)
- Specified by:
withKeyValue
in interfaceMutableBiMap<K,V>
- Specified by:
withKeyValue
in interfaceMutableMapIterable<K,V>
-
withAllKeyValues
public MutableBiMap<K,V> withAllKeyValues(Iterable<? extends Pair<? extends K,? extends V>> keyValues)
- Specified by:
withAllKeyValues
in interfaceMutableBiMap<K,V>
- Specified by:
withAllKeyValues
in interfaceMutableMapIterable<K,V>
-
withAllKeyValueArguments
public MutableBiMap<K,V> withAllKeyValueArguments(Pair<? extends K,? extends V>... keyValuePairs)
- Specified by:
withAllKeyValueArguments
in interfaceMutableBiMap<K,V>
- Specified by:
withAllKeyValueArguments
in interfaceMutableMapIterable<K,V>
-
withoutKey
public MutableBiMap<K,V> withoutKey(K key)
- Specified by:
withoutKey
in interfaceMutableBiMap<K,V>
- Specified by:
withoutKey
in interfaceMutableMapIterable<K,V>
-
withoutAllKeys
public MutableBiMap<K,V> withoutAllKeys(Iterable<? extends K> keys)
- Specified by:
withoutAllKeys
in interfaceMutableBiMap<K,V>
- Specified by:
withoutAllKeys
in interfaceMutableMapIterable<K,V>
-
inverse
public MutableBiMap<V,K> inverse()
- Specified by:
inverse
in interfaceBiMap<K,V>
- Specified by:
inverse
in interfaceMutableBiMap<K,V>
-
flip
public MutableSetMultimap<V,K> flip()
- Specified by:
flip
in interfaceBiMap<K,V>
- Specified by:
flip
in interfaceMapIterable<K,V>
- Specified by:
flip
in interfaceMutableBiMap<K,V>
- Specified by:
flip
in interfaceMutableMapIterable<K,V>
-
flipUniqueValues
public MutableBiMap<V,K> flipUniqueValues()
- Specified by:
flipUniqueValues
in interfaceBiMap<K,V>
- Specified by:
flipUniqueValues
in interfaceMapIterable<K,V>
- Specified by:
flipUniqueValues
in interfaceMutableBiMap<K,V>
- Specified by:
flipUniqueValues
in interfaceMutableMapIterable<K,V>
-
put
public V put(K key, V value)
- Specified by:
put
in interfaceMap<K,V>
- Specified by:
put
in interfaceMutableBiMap<K,V>
-
forcePut
public V forcePut(K key, V value)
- Specified by:
forcePut
in interfaceMutableBiMap<K,V>
-
putAll
public void putAll(Map<? extends K,? extends V> map)
-
removeKey
public V removeKey(K key)
- Specified by:
removeKey
in interfaceMutableMapIterable<K,V>
-
getIfAbsentPut
public V getIfAbsentPut(K key, V value)
- Specified by:
getIfAbsentPut
in interfaceMutableMapIterable<K,V>
-
getIfAbsentPut
public V getIfAbsentPut(K key, Function0<? extends V> function)
- Specified by:
getIfAbsentPut
in interfaceMutableMapIterable<K,V>
-
getIfAbsentPutWith
public <P> V getIfAbsentPutWith(K key, Function<? super P,? extends V> function, P parameter)
- Specified by:
getIfAbsentPutWith
in interfaceMutableMapIterable<K,V>
-
getIfAbsentPutWithKey
public V getIfAbsentPutWithKey(K key, Function<? super K,? extends V> function)
- Specified by:
getIfAbsentPutWithKey
in interfaceMutableMapIterable<K,V>
-
updateValue
public V updateValue(K key, Function0<? extends V> factory, Function<? super V,? extends V> function)
- Specified by:
updateValue
in 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:
updateValueWith
in interfaceMutableMapIterable<K,V>
-
values
public Collection<V> values()
-
toImmutable
public ImmutableBiMap<K,V> toImmutable()
- Specified by:
toImmutable
in interfaceBiMap<K,V>
- Specified by:
toImmutable
in interfaceMapIterable<K,V>
- Specified by:
toImmutable
in interfaceMutableMapIterable<K,V>
-
asSynchronized
public MutableBiMap<K,V> asSynchronized()
- Specified by:
asSynchronized
in interfaceMutableBiMap<K,V>
- Specified by:
asSynchronized
in interfaceMutableMapIterable<K,V>
-
asUnmodifiable
public MutableBiMap<K,V> asUnmodifiable()
- Specified by:
asUnmodifiable
in interfaceMutableBiMap<K,V>
- Specified by:
asUnmodifiable
in interfaceMutableMapIterable<K,V>
-
clone
public MutableBiMap<K,V> clone()
- Specified by:
clone
in interfaceMutableBiMap<K,V>
-
tap
public MutableBiMap<K,V> tap(Procedure<? super V> procedure)
- Specified by:
tap
in interfaceBiMap<K,V>
- Specified by:
tap
in interfaceMapIterable<K,V>
- Specified by:
tap
in interfaceMutableBiMap<K,V>
- Specified by:
tap
in interfaceMutableMapIterable<K,V>
- Specified by:
tap
in interfaceRichIterable<K>
-
select
public HashBiMap<K,V> select(Predicate2<? super K,? super V> predicate)
- Specified by:
select
in interfaceBiMap<K,V>
- Specified by:
select
in interfaceMapIterable<K,V>
- Specified by:
select
in interfaceMutableBiMap<K,V>
- Specified by:
select
in interfaceMutableMapIterable<K,V>
-
reject
public HashBiMap<K,V> reject(Predicate2<? super K,? super V> predicate)
- Specified by:
reject
in interfaceBiMap<K,V>
- Specified by:
reject
in interfaceMapIterable<K,V>
- Specified by:
reject
in interfaceMutableBiMap<K,V>
- Specified by:
reject
in interfaceMutableMapIterable<K,V>
-
collect
public <K2,V2> HashBiMap<K2,V2> collect(Function2<? super K,? super V,Pair<K2,V2>> function)
- Specified by:
collect
in interfaceBiMap<K,V>
- Specified by:
collect
in interfaceMapIterable<K,V>
- Specified by:
collect
in interfaceMutableBiMap<K,V>
- Specified by:
collect
in interfaceMutableMapIterable<K,V>
-
collectValues
public <R> HashBiMap<K,R> collectValues(Function2<? super K,? super V,? extends R> function)
- Specified by:
collectValues
in interfaceBiMap<K,V>
- Specified by:
collectValues
in interfaceMapIterable<K,V>
- Specified by:
collectValues
in interfaceMutableBiMap<K,V>
- Specified by:
collectValues
in interfaceMutableMapIterable<K,V>
-
collect
public <VV> MutableBag<VV> collect(Function<? super V,? extends VV> function)
- Specified by:
collect
in interfaceRichIterable<K>
-
collectWith
public <P,VV> MutableBag<VV> collectWith(Function2<? super V,? super P,? extends VV> function, P parameter)
- Specified by:
collectWith
in interfaceRichIterable<K>
-
flatCollect
public <VV> MutableBag<VV> flatCollect(Function<? super V,? extends Iterable<VV>> function)
- Specified by:
flatCollect
in interfaceRichIterable<K>
-
collectBoolean
public MutableBooleanBag collectBoolean(BooleanFunction<? super V> booleanFunction)
- Specified by:
collectBoolean
in interfaceRichIterable<K>
-
collectByte
public MutableByteBag collectByte(ByteFunction<? super V> byteFunction)
- Specified by:
collectByte
in interfaceRichIterable<K>
-
collectChar
public MutableCharBag collectChar(CharFunction<? super V> charFunction)
- Specified by:
collectChar
in interfaceRichIterable<K>
-
collectDouble
public MutableDoubleBag collectDouble(DoubleFunction<? super V> doubleFunction)
- Specified by:
collectDouble
in interfaceRichIterable<K>
-
collectFloat
public MutableFloatBag collectFloat(FloatFunction<? super V> floatFunction)
- Specified by:
collectFloat
in interfaceRichIterable<K>
-
collectInt
public MutableIntBag collectInt(IntFunction<? super V> intFunction)
- Specified by:
collectInt
in interfaceRichIterable<K>
-
collectLong
public MutableLongBag collectLong(LongFunction<? super V> longFunction)
- Specified by:
collectLong
in interfaceRichIterable<K>
-
collectShort
public MutableShortBag collectShort(ShortFunction<? super V> shortFunction)
- Specified by:
collectShort
in interfaceRichIterable<K>
-
collectIf
public <VV> MutableBag<VV> collectIf(Predicate<? super V> predicate, Function<? super V,? extends VV> function)
- Specified by:
collectIf
in interfaceRichIterable<K>
-
zipWithIndex
@Deprecated public MutableSet<Pair<V,Integer>> zipWithIndex()
Deprecated.in 8.0. UseOrderedIterable.zipWithIndex()
instead.- Specified by:
zipWithIndex
in interfaceBiMap<K,V>
- Specified by:
zipWithIndex
in interfaceMutableBiMap<K,V>
- Specified by:
zipWithIndex
in interfaceMutableMapIterable<K,V>
- Specified by:
zipWithIndex
in interfaceRichIterable<K>
-
groupBy
public <VV> MutableSetMultimap<VV,V> groupBy(Function<? super V,? extends VV> function)
- Specified by:
groupBy
in interfaceBiMap<K,V>
- Specified by:
groupBy
in interfaceMutableBiMap<K,V>
- Specified by:
groupBy
in interfaceMutableMapIterable<K,V>
- Specified by:
groupBy
in interfaceRichIterable<K>
-
groupByEach
public <VV> MutableSetMultimap<VV,V> groupByEach(Function<? super V,? extends Iterable<VV>> function)
- Specified by:
groupByEach
in interfaceBiMap<K,V>
- Specified by:
groupByEach
in interfaceMutableBiMap<K,V>
- Specified by:
groupByEach
in interfaceMutableMapIterable<K,V>
- Specified by:
groupByEach
in interfaceRichIterable<K>
-
zip
@Deprecated public <S> MutableSet<Pair<V,S>> zip(Iterable<S> that)
Deprecated.in 8.0. UseOrderedIterable.zip(Iterable)
instead.- Specified by:
zip
in interfaceBiMap<K,V>
- Specified by:
zip
in interfaceMutableBiMap<K,V>
- Specified by:
zip
in interfaceMutableMapIterable<K,V>
- Specified by:
zip
in interfaceRichIterable<K>
-
select
public MutableSet<V> select(Predicate<? super V> predicate)
- Specified by:
select
in interfaceBiMap<K,V>
- Specified by:
select
in interfaceMutableBiMap<K,V>
- Specified by:
select
in interfaceMutableMapIterable<K,V>
- Specified by:
select
in interfaceRichIterable<K>
-
selectWith
public <P> MutableSet<V> selectWith(Predicate2<? super V,? super P> predicate, P parameter)
- Specified by:
selectWith
in interfaceBiMap<K,V>
- Specified by:
selectWith
in interfaceMutableBiMap<K,V>
- Specified by:
selectWith
in interfaceMutableMapIterable<K,V>
- Specified by:
selectWith
in interfaceRichIterable<K>
-
reject
public MutableSet<V> reject(Predicate<? super V> predicate)
- Specified by:
reject
in interfaceBiMap<K,V>
- Specified by:
reject
in interfaceMutableBiMap<K,V>
- Specified by:
reject
in interfaceMutableMapIterable<K,V>
- Specified by:
reject
in interfaceRichIterable<K>
-
rejectWith
public <P> MutableSet<V> rejectWith(Predicate2<? super V,? super P> predicate, P parameter)
- Specified by:
rejectWith
in interfaceBiMap<K,V>
- Specified by:
rejectWith
in interfaceMutableBiMap<K,V>
- Specified by:
rejectWith
in interfaceMutableMapIterable<K,V>
- Specified by:
rejectWith
in interfaceRichIterable<K>
-
partition
public PartitionMutableSet<V> partition(Predicate<? super V> predicate)
- Specified by:
partition
in interfaceBiMap<K,V>
- Specified by:
partition
in interfaceMutableBiMap<K,V>
- Specified by:
partition
in interfaceMutableMapIterable<K,V>
- Specified by:
partition
in interfaceRichIterable<K>
-
partitionWith
public <P> PartitionMutableSet<V> partitionWith(Predicate2<? super V,? super P> predicate, P parameter)
- Specified by:
partitionWith
in interfaceBiMap<K,V>
- Specified by:
partitionWith
in interfaceMutableBiMap<K,V>
- Specified by:
partitionWith
in interfaceRichIterable<K>
-
forEachValue
public void forEachValue(Procedure<? super V> procedure)
- Specified by:
forEachValue
in interfaceMapIterable<K,V>
- Overrides:
forEachValue
in classAbstractBiMap<K,V>
-
groupByUniqueKey
public <VV> MutableBiMap<VV,V> groupByUniqueKey(Function<? super V,? extends VV> function)
- Specified by:
groupByUniqueKey
in interfaceBiMap<K,V>
- Specified by:
groupByUniqueKey
in interfaceMutableBiMap<K,V>
- Specified by:
groupByUniqueKey
in interfaceMutableMapIterable<K,V>
- Specified by:
groupByUniqueKey
in interfaceRichIterable<K>
-
sumByInt
public <V1> MutableObjectLongMap<V1> sumByInt(Function<? super V,? extends V1> groupBy, IntFunction<? super V> function)
- Specified by:
sumByInt
in interfaceMutableMapIterable<K,V>
- Specified by:
sumByInt
in interfaceRichIterable<K>
-
sumByFloat
public <V1> MutableObjectDoubleMap<V1> sumByFloat(Function<? super V,? extends V1> groupBy, FloatFunction<? super V> function)
- Specified by:
sumByFloat
in interfaceMutableMapIterable<K,V>
- Specified by:
sumByFloat
in interfaceRichIterable<K>
-
sumByLong
public <V1> MutableObjectLongMap<V1> sumByLong(Function<? super V,? extends V1> groupBy, LongFunction<? super V> function)
- Specified by:
sumByLong
in interfaceMutableMapIterable<K,V>
- Specified by:
sumByLong
in interfaceRichIterable<K>
-
sumByDouble
public <V1> MutableObjectDoubleMap<V1> sumByDouble(Function<? super V,? extends V1> groupBy, DoubleFunction<? super V> function)
- Specified by:
sumByDouble
in interfaceMutableMapIterable<K,V>
- Specified by:
sumByDouble
in interfaceRichIterable<K>
-
selectInstancesOf
public <S> MutableSet<S> selectInstancesOf(Class<S> clazz)
- Specified by:
selectInstancesOf
in interfaceBiMap<K,V>
- Specified by:
selectInstancesOf
in interfaceMutableBiMap<K,V>
- Specified by:
selectInstancesOf
in interfaceMutableMapIterable<K,V>
- Specified by:
selectInstancesOf
in interfaceRichIterable<K>
-
writeExternal
public void writeExternal(ObjectOutput out) throws IOException
- Throws:
IOException
-
readExternal
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
- Throws:
IOException
ClassNotFoundException
-
-