@Immutable public abstract class AbstractImmutableMap<K,V> extends AbstractMapIterable<K,V> implements org.eclipse.collections.api.map.ImmutableMap<K,V>, Map<K,V>
| Constructor and Description |
|---|
AbstractImmutableMap() |
| Modifier and Type | Method and Description |
|---|---|
<K2,V2> org.eclipse.collections.api.map.ImmutableMap<K2,V2> |
aggregateBy(org.eclipse.collections.api.block.function.Function<? super V,? extends K2> groupBy,
org.eclipse.collections.api.block.function.Function0<? extends V2> zeroValueFactory,
org.eclipse.collections.api.block.function.Function2<? super V2,? super V,? extends V2> nonMutatingAggregator) |
<K2,V2> org.eclipse.collections.api.map.ImmutableMap<K2,V2> |
aggregateInPlaceBy(org.eclipse.collections.api.block.function.Function<? super V,? extends K2> groupBy,
org.eclipse.collections.api.block.function.Function0<? extends V2> zeroValueFactory,
org.eclipse.collections.api.block.procedure.Procedure2<? super V2,? super V> mutatingAggregator) |
Map<K,V> |
castToMap() |
void |
clear() |
<R> org.eclipse.collections.api.bag.ImmutableBag<R> |
collect(org.eclipse.collections.api.block.function.Function<? super V,? extends R> function) |
<K2,V2> org.eclipse.collections.api.map.ImmutableMap<K2,V2> |
collect(org.eclipse.collections.api.block.function.Function2<? super K,? super V,org.eclipse.collections.api.tuple.Pair<K2,V2>> function) |
org.eclipse.collections.api.bag.primitive.ImmutableBooleanBag |
collectBoolean(org.eclipse.collections.api.block.function.primitive.BooleanFunction<? super V> booleanFunction) |
org.eclipse.collections.api.bag.primitive.ImmutableByteBag |
collectByte(org.eclipse.collections.api.block.function.primitive.ByteFunction<? super V> byteFunction) |
org.eclipse.collections.api.bag.primitive.ImmutableCharBag |
collectChar(org.eclipse.collections.api.block.function.primitive.CharFunction<? super V> charFunction) |
org.eclipse.collections.api.bag.primitive.ImmutableDoubleBag |
collectDouble(org.eclipse.collections.api.block.function.primitive.DoubleFunction<? super V> doubleFunction) |
org.eclipse.collections.api.bag.primitive.ImmutableFloatBag |
collectFloat(org.eclipse.collections.api.block.function.primitive.FloatFunction<? super V> floatFunction) |
<R> org.eclipse.collections.api.bag.ImmutableBag<R> |
collectIf(org.eclipse.collections.api.block.predicate.Predicate<? super V> predicate,
org.eclipse.collections.api.block.function.Function<? super V,? extends R> function) |
org.eclipse.collections.api.bag.primitive.ImmutableIntBag |
collectInt(org.eclipse.collections.api.block.function.primitive.IntFunction<? super V> intFunction) |
org.eclipse.collections.api.bag.primitive.ImmutableLongBag |
collectLong(org.eclipse.collections.api.block.function.primitive.LongFunction<? super V> longFunction) |
org.eclipse.collections.api.bag.primitive.ImmutableShortBag |
collectShort(org.eclipse.collections.api.block.function.primitive.ShortFunction<? super V> shortFunction) |
<R> org.eclipse.collections.api.map.ImmutableMap<K,R> |
collectValues(org.eclipse.collections.api.block.function.Function2<? super K,? super V,? extends R> function) |
<P,VV> org.eclipse.collections.api.bag.ImmutableBag<VV> |
collectWith(org.eclipse.collections.api.block.function.Function2<? super V,? super P,? extends VV> function,
P parameter) |
org.eclipse.collections.api.tuple.Pair<K,V> |
detect(org.eclipse.collections.api.block.predicate.Predicate2<? super K,? super V> predicate) |
Set<Map.Entry<K,V>> |
entrySet() |
<R> org.eclipse.collections.api.bag.ImmutableBag<R> |
flatCollect(org.eclipse.collections.api.block.function.Function<? super V,? extends Iterable<R>> function) |
org.eclipse.collections.api.multimap.set.ImmutableSetMultimap<V,K> |
flip() |
org.eclipse.collections.api.map.ImmutableMap<V,K> |
flipUniqueValues() |
<VV> org.eclipse.collections.api.multimap.bag.ImmutableBagMultimap<VV,V> |
groupBy(org.eclipse.collections.api.block.function.Function<? super V,? extends VV> function) |
<VV> org.eclipse.collections.api.multimap.bag.ImmutableBagMultimap<VV,V> |
groupByEach(org.eclipse.collections.api.block.function.Function<? super V,? extends Iterable<VV>> function) |
<V1> org.eclipse.collections.api.map.ImmutableMap<V1,V> |
groupByUniqueKey(org.eclipse.collections.api.block.function.Function<? super V,? extends V1> function) |
Iterator<V> |
iterator() |
org.eclipse.collections.api.map.ImmutableMap<K,V> |
newWithAllKeyValueArguments(org.eclipse.collections.api.tuple.Pair<? extends K,? extends V>... keyValuePairs) |
org.eclipse.collections.api.map.ImmutableMap<K,V> |
newWithAllKeyValues(Iterable<? extends org.eclipse.collections.api.tuple.Pair<? extends K,? extends V>> keyValues) |
org.eclipse.collections.api.map.ImmutableMap<K,V> |
newWithKeyValue(K key,
V value) |
org.eclipse.collections.api.map.ImmutableMap<K,V> |
newWithoutAllKeys(Iterable<? extends K> keys) |
org.eclipse.collections.api.map.ImmutableMap<K,V> |
newWithoutKey(K key) |
org.eclipse.collections.api.partition.bag.PartitionImmutableBag<V> |
partition(org.eclipse.collections.api.block.predicate.Predicate<? super V> predicate) |
<P> org.eclipse.collections.api.partition.bag.PartitionImmutableBag<V> |
partitionWith(org.eclipse.collections.api.block.predicate.Predicate2<? super V,? super P> predicate,
P parameter) |
V |
put(K key,
V value) |
void |
putAll(Map<? extends K,? extends V> map) |
org.eclipse.collections.api.bag.ImmutableBag<V> |
reject(org.eclipse.collections.api.block.predicate.Predicate<? super V> predicate) |
org.eclipse.collections.api.map.ImmutableMap<K,V> |
reject(org.eclipse.collections.api.block.predicate.Predicate2<? super K,? super V> predicate) |
<P> org.eclipse.collections.api.bag.ImmutableBag<V> |
rejectWith(org.eclipse.collections.api.block.predicate.Predicate2<? super V,? super P> predicate,
P parameter) |
V |
remove(Object key) |
org.eclipse.collections.api.bag.ImmutableBag<V> |
select(org.eclipse.collections.api.block.predicate.Predicate<? super V> predicate) |
org.eclipse.collections.api.map.ImmutableMap<K,V> |
select(org.eclipse.collections.api.block.predicate.Predicate2<? super K,? super V> predicate) |
<S> org.eclipse.collections.api.bag.ImmutableBag<S> |
selectInstancesOf(Class<S> clazz) |
<P> org.eclipse.collections.api.bag.ImmutableBag<V> |
selectWith(org.eclipse.collections.api.block.predicate.Predicate2<? super V,? super P> predicate,
P parameter) |
org.eclipse.collections.api.map.ImmutableMap<K,V> |
tap(org.eclipse.collections.api.block.procedure.Procedure<? super V> procedure) |
org.eclipse.collections.api.map.ImmutableMap<K,V> |
toImmutable() |
org.eclipse.collections.api.map.MutableMap<K,V> |
toMap() |
<S> org.eclipse.collections.api.bag.ImmutableBag<org.eclipse.collections.api.tuple.Pair<V,S>> |
zip(Iterable<S> that)
Deprecated.
in 6.0. Use
OrderedIterable.zip(Iterable) instead. |
org.eclipse.collections.api.set.ImmutableSet<org.eclipse.collections.api.tuple.Pair<V,Integer>> |
zipWithIndex()
Deprecated.
in 6.0. Use
OrderedIterable.zipWithIndex() instead. |
allSatisfy, allSatisfyWith, anySatisfy, anySatisfyWith, asLazy, chunk, contains, detect, detectIfNone, detectWith, detectWithIfNone, each, forEachKey, forEachValue, forEachWith, forEachWithIndex, getFirst, getIfAbsent, getIfAbsentValue, getIfAbsentWith, getLast, ifPresentApply, noneSatisfy, noneSatisfyWith, toArray, toArrayappendString, appendString, appendString, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectIf, collectInt, collectLong, collectShort, collectWith, containsAll, containsAllArguments, containsAllIterable, count, countWith, flatCollect, forEach, groupBy, groupByEach, groupByUniqueKey, injectInto, injectInto, injectInto, injectInto, injectInto, isEmpty, makeString, makeString, makeString, max, max, maxBy, min, min, minBy, notEmpty, reject, rejectWith, select, selectWith, sumByDouble, sumByFloat, sumByInt, sumByLong, sumOfDouble, sumOfFloat, sumOfInt, sumOfLong, toBag, toList, toMap, toSet, toSortedBag, toSortedBag, toSortedBagBy, toSortedList, toSortedList, toSortedListBy, toSortedMap, toSortedMap, toSortedSet, toSortedSet, toSortedSetBy, toString, zip, zipWithIndexequals, getClass, hashCode, notify, notifyAll, wait, wait, waitcontainsKey, containsValue, equals, forEachKey, forEachKeyValue, forEachValue, get, getIfAbsent, getIfAbsentValue, getIfAbsentWith, hashCode, ifPresentApply, keysView, keyValuesView, toString, valuesViewallSatisfy, allSatisfyWith, anySatisfy, anySatisfyWith, appendString, appendString, appendString, asLazy, chunk, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectIf, collectInt, collectLong, collectShort, collectWith, contains, containsAll, containsAllArguments, containsAllIterable, count, countWith, detect, detectIfNone, detectWith, detectWithIfNone, each, flatCollect, getFirst, getLast, groupBy, groupByEach, groupByUniqueKey, injectInto, injectInto, injectInto, injectInto, injectInto, isEmpty, makeString, makeString, makeString, max, max, maxBy, min, min, minBy, noneSatisfy, noneSatisfyWith, notEmpty, reject, rejectWith, select, selectWith, size, sumByDouble, sumByFloat, sumByInt, sumByLong, sumOfDouble, sumOfFloat, sumOfInt, sumOfLong, toArray, toArray, toBag, toList, toMap, toSet, toSortedBag, toSortedBag, toSortedBagBy, toSortedList, toSortedList, toSortedListBy, toSortedMap, toSortedMap, toSortedSet, toSortedSet, toSortedSetBy, zip, zipWithIndexforEach, forEachWith, forEachWithIndexforEach, spliteratorcompute, computeIfAbsent, computeIfPresent, containsKey, containsValue, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, putIfAbsent, remove, replace, replace, replaceAll, size, valuespublic org.eclipse.collections.api.multimap.set.ImmutableSetMultimap<V,K> flip()
flip in interface org.eclipse.collections.api.map.ImmutableMap<K,V>flip in interface org.eclipse.collections.api.map.ImmutableMapIterable<K,V>flip in interface org.eclipse.collections.api.map.MapIterable<K,V>flip in interface org.eclipse.collections.api.map.UnsortedMapIterable<K,V>public org.eclipse.collections.api.map.ImmutableMap<K,V> newWithKeyValue(K key, V value)
public org.eclipse.collections.api.map.ImmutableMap<K,V> newWithAllKeyValues(Iterable<? extends org.eclipse.collections.api.tuple.Pair<? extends K,? extends V>> keyValues)
public org.eclipse.collections.api.map.ImmutableMap<K,V> newWithAllKeyValueArguments(org.eclipse.collections.api.tuple.Pair<? extends K,? extends V>... keyValuePairs)
public org.eclipse.collections.api.map.ImmutableMap<K,V> newWithoutAllKeys(Iterable<? extends K> keys)
public org.eclipse.collections.api.map.ImmutableMap<V,K> flipUniqueValues()
flipUniqueValues in interface org.eclipse.collections.api.map.ImmutableMap<K,V>flipUniqueValues in interface org.eclipse.collections.api.map.ImmutableMapIterable<K,V>flipUniqueValues in interface org.eclipse.collections.api.map.MapIterable<K,V>flipUniqueValues in interface org.eclipse.collections.api.map.UnsortedMapIterable<K,V>public <K2,V2> org.eclipse.collections.api.map.ImmutableMap<K2,V2> collect(org.eclipse.collections.api.block.function.Function2<? super K,? super V,org.eclipse.collections.api.tuple.Pair<K2,V2>> function)
collect in interface org.eclipse.collections.api.map.ImmutableMap<K,V>collect in interface org.eclipse.collections.api.map.ImmutableMapIterable<K,V>collect in interface org.eclipse.collections.api.map.MapIterable<K,V>collect in interface org.eclipse.collections.api.map.UnsortedMapIterable<K,V>public <R> org.eclipse.collections.api.map.ImmutableMap<K,R> collectValues(org.eclipse.collections.api.block.function.Function2<? super K,? super V,? extends R> function)
collectValues in interface org.eclipse.collections.api.map.ImmutableMap<K,V>collectValues in interface org.eclipse.collections.api.map.ImmutableMapIterable<K,V>collectValues in interface org.eclipse.collections.api.map.MapIterable<K,V>collectValues in interface org.eclipse.collections.api.map.UnsortedMapIterable<K,V>public org.eclipse.collections.api.map.ImmutableMap<K,V> select(org.eclipse.collections.api.block.predicate.Predicate2<? super K,? super V> predicate)
select in interface org.eclipse.collections.api.map.ImmutableMap<K,V>select in interface org.eclipse.collections.api.map.ImmutableMapIterable<K,V>select in interface org.eclipse.collections.api.map.MapIterable<K,V>select in interface org.eclipse.collections.api.map.UnsortedMapIterable<K,V>public org.eclipse.collections.api.map.ImmutableMap<K,V> reject(org.eclipse.collections.api.block.predicate.Predicate2<? super K,? super V> predicate)
reject in interface org.eclipse.collections.api.map.ImmutableMap<K,V>reject in interface org.eclipse.collections.api.map.ImmutableMapIterable<K,V>reject in interface org.eclipse.collections.api.map.MapIterable<K,V>reject in interface org.eclipse.collections.api.map.UnsortedMapIterable<K,V>public org.eclipse.collections.api.tuple.Pair<K,V> detect(org.eclipse.collections.api.block.predicate.Predicate2<? super K,? super V> predicate)
public <R> org.eclipse.collections.api.bag.ImmutableBag<R> collect(org.eclipse.collections.api.block.function.Function<? super V,? extends R> function)
public <P,VV> org.eclipse.collections.api.bag.ImmutableBag<VV> collectWith(org.eclipse.collections.api.block.function.Function2<? super V,? super P,? extends VV> function, P parameter)
public org.eclipse.collections.api.bag.primitive.ImmutableBooleanBag collectBoolean(org.eclipse.collections.api.block.function.primitive.BooleanFunction<? super V> booleanFunction)
public org.eclipse.collections.api.bag.primitive.ImmutableByteBag collectByte(org.eclipse.collections.api.block.function.primitive.ByteFunction<? super V> byteFunction)
public org.eclipse.collections.api.bag.primitive.ImmutableCharBag collectChar(org.eclipse.collections.api.block.function.primitive.CharFunction<? super V> charFunction)
public org.eclipse.collections.api.bag.primitive.ImmutableDoubleBag collectDouble(org.eclipse.collections.api.block.function.primitive.DoubleFunction<? super V> doubleFunction)
public org.eclipse.collections.api.bag.primitive.ImmutableFloatBag collectFloat(org.eclipse.collections.api.block.function.primitive.FloatFunction<? super V> floatFunction)
public org.eclipse.collections.api.bag.primitive.ImmutableIntBag collectInt(org.eclipse.collections.api.block.function.primitive.IntFunction<? super V> intFunction)
public org.eclipse.collections.api.bag.primitive.ImmutableLongBag collectLong(org.eclipse.collections.api.block.function.primitive.LongFunction<? super V> longFunction)
public org.eclipse.collections.api.bag.primitive.ImmutableShortBag collectShort(org.eclipse.collections.api.block.function.primitive.ShortFunction<? super V> shortFunction)
public <R> org.eclipse.collections.api.bag.ImmutableBag<R> collectIf(org.eclipse.collections.api.block.predicate.Predicate<? super V> predicate, org.eclipse.collections.api.block.function.Function<? super V,? extends R> function)
public <R> org.eclipse.collections.api.bag.ImmutableBag<R> flatCollect(org.eclipse.collections.api.block.function.Function<? super V,? extends Iterable<R>> function)
public org.eclipse.collections.api.bag.ImmutableBag<V> select(org.eclipse.collections.api.block.predicate.Predicate<? super V> predicate)
select in interface org.eclipse.collections.api.map.ImmutableMap<K,V>select in interface org.eclipse.collections.api.map.ImmutableMapIterable<K,V>select in interface org.eclipse.collections.api.map.UnsortedMapIterable<K,V>select in interface org.eclipse.collections.api.RichIterable<V>public <P> org.eclipse.collections.api.bag.ImmutableBag<V> selectWith(org.eclipse.collections.api.block.predicate.Predicate2<? super V,? super P> predicate, P parameter)
selectWith in interface org.eclipse.collections.api.map.ImmutableMap<K,V>selectWith in interface org.eclipse.collections.api.map.ImmutableMapIterable<K,V>selectWith in interface org.eclipse.collections.api.map.UnsortedMapIterable<K,V>selectWith in interface org.eclipse.collections.api.RichIterable<V>public org.eclipse.collections.api.map.ImmutableMap<K,V> tap(org.eclipse.collections.api.block.procedure.Procedure<? super V> procedure)
tap in interface org.eclipse.collections.api.map.ImmutableMap<K,V>tap in interface org.eclipse.collections.api.map.ImmutableMapIterable<K,V>tap in interface org.eclipse.collections.api.map.MapIterable<K,V>tap in interface org.eclipse.collections.api.map.UnsortedMapIterable<K,V>tap in interface org.eclipse.collections.api.RichIterable<V>public org.eclipse.collections.api.bag.ImmutableBag<V> reject(org.eclipse.collections.api.block.predicate.Predicate<? super V> predicate)
reject in interface org.eclipse.collections.api.map.ImmutableMap<K,V>reject in interface org.eclipse.collections.api.map.ImmutableMapIterable<K,V>reject in interface org.eclipse.collections.api.map.UnsortedMapIterable<K,V>reject in interface org.eclipse.collections.api.RichIterable<V>public <P> org.eclipse.collections.api.bag.ImmutableBag<V> rejectWith(org.eclipse.collections.api.block.predicate.Predicate2<? super V,? super P> predicate, P parameter)
rejectWith in interface org.eclipse.collections.api.map.ImmutableMap<K,V>rejectWith in interface org.eclipse.collections.api.map.ImmutableMapIterable<K,V>rejectWith in interface org.eclipse.collections.api.map.UnsortedMapIterable<K,V>rejectWith in interface org.eclipse.collections.api.RichIterable<V>public org.eclipse.collections.api.partition.bag.PartitionImmutableBag<V> partition(org.eclipse.collections.api.block.predicate.Predicate<? super V> predicate)
partition in interface org.eclipse.collections.api.map.ImmutableMap<K,V>partition in interface org.eclipse.collections.api.map.ImmutableMapIterable<K,V>partition in interface org.eclipse.collections.api.map.UnsortedMapIterable<K,V>partition in interface org.eclipse.collections.api.RichIterable<V>public <P> org.eclipse.collections.api.partition.bag.PartitionImmutableBag<V> partitionWith(org.eclipse.collections.api.block.predicate.Predicate2<? super V,? super P> predicate, P parameter)
public <S> org.eclipse.collections.api.bag.ImmutableBag<S> selectInstancesOf(Class<S> clazz)
selectInstancesOf in interface org.eclipse.collections.api.map.ImmutableMap<K,V>selectInstancesOf in interface org.eclipse.collections.api.map.ImmutableMapIterable<K,V>selectInstancesOf in interface org.eclipse.collections.api.map.UnsortedMapIterable<K,V>selectInstancesOf in interface org.eclipse.collections.api.RichIterable<V>@Deprecated public <S> org.eclipse.collections.api.bag.ImmutableBag<org.eclipse.collections.api.tuple.Pair<V,S>> zip(Iterable<S> that)
OrderedIterable.zip(Iterable) instead.zip in interface org.eclipse.collections.api.map.ImmutableMap<K,V>zip in interface org.eclipse.collections.api.map.ImmutableMapIterable<K,V>zip in interface org.eclipse.collections.api.map.UnsortedMapIterable<K,V>zip in interface org.eclipse.collections.api.RichIterable<V>@Deprecated public org.eclipse.collections.api.set.ImmutableSet<org.eclipse.collections.api.tuple.Pair<V,Integer>> zipWithIndex()
OrderedIterable.zipWithIndex() instead.zipWithIndex in interface org.eclipse.collections.api.map.ImmutableMap<K,V>zipWithIndex in interface org.eclipse.collections.api.map.ImmutableMapIterable<K,V>zipWithIndex in interface org.eclipse.collections.api.map.UnsortedMapIterable<K,V>zipWithIndex in interface org.eclipse.collections.api.RichIterable<V>public <VV> org.eclipse.collections.api.multimap.bag.ImmutableBagMultimap<VV,V> groupBy(org.eclipse.collections.api.block.function.Function<? super V,? extends VV> function)
groupBy in interface org.eclipse.collections.api.map.ImmutableMap<K,V>groupBy in interface org.eclipse.collections.api.map.ImmutableMapIterable<K,V>groupBy in interface org.eclipse.collections.api.map.UnsortedMapIterable<K,V>groupBy in interface org.eclipse.collections.api.RichIterable<V>public <VV> org.eclipse.collections.api.multimap.bag.ImmutableBagMultimap<VV,V> groupByEach(org.eclipse.collections.api.block.function.Function<? super V,? extends Iterable<VV>> function)
groupByEach in interface org.eclipse.collections.api.map.ImmutableMap<K,V>groupByEach in interface org.eclipse.collections.api.map.ImmutableMapIterable<K,V>groupByEach in interface org.eclipse.collections.api.map.UnsortedMapIterable<K,V>groupByEach in interface org.eclipse.collections.api.RichIterable<V>public <V1> org.eclipse.collections.api.map.ImmutableMap<V1,V> groupByUniqueKey(org.eclipse.collections.api.block.function.Function<? super V,? extends V1> function)
groupByUniqueKey in interface org.eclipse.collections.api.map.ImmutableMap<K,V>groupByUniqueKey in interface org.eclipse.collections.api.map.ImmutableMapIterable<K,V>groupByUniqueKey in interface org.eclipse.collections.api.map.UnsortedMapIterable<K,V>groupByUniqueKey in interface org.eclipse.collections.api.RichIterable<V>public <K2,V2> org.eclipse.collections.api.map.ImmutableMap<K2,V2> aggregateInPlaceBy(org.eclipse.collections.api.block.function.Function<? super V,? extends K2> groupBy, org.eclipse.collections.api.block.function.Function0<? extends V2> zeroValueFactory, org.eclipse.collections.api.block.procedure.Procedure2<? super V2,? super V> mutatingAggregator)
public <K2,V2> org.eclipse.collections.api.map.ImmutableMap<K2,V2> aggregateBy(org.eclipse.collections.api.block.function.Function<? super V,? extends K2> groupBy, org.eclipse.collections.api.block.function.Function0<? extends V2> zeroValueFactory, org.eclipse.collections.api.block.function.Function2<? super V2,? super V,? extends V2> nonMutatingAggregator)
Copyright © 2004–2017. All rights reserved.