All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.eclipse.collections.impl.map.mutable.UnmodifiableMutableMap Maven / Gradle / Ivy

There is a newer version: 12.0.0.M3
Show newest version
/*
 * Copyright (c) 2020 Goldman Sachs and others.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * and Eclipse Distribution License v. 1.0 which accompany this distribution.
 * The Eclipse Public License is available at http://www.eclipse.org/legal/epl-v10.html
 * and the Eclipse Distribution License is available at
 * http://www.eclipse.org/org/documents/edl-v10.php.
 */

package org.eclipse.collections.impl.map.mutable;

import java.util.Collection;
import java.util.Comparator;
import java.util.Iterator;
import java.util.Map;
import java.util.Optional;
import java.util.Set;

import org.eclipse.collections.api.BooleanIterable;
import org.eclipse.collections.api.ByteIterable;
import org.eclipse.collections.api.CharIterable;
import org.eclipse.collections.api.DoubleIterable;
import org.eclipse.collections.api.FloatIterable;
import org.eclipse.collections.api.IntIterable;
import org.eclipse.collections.api.LazyIterable;
import org.eclipse.collections.api.LongIterable;
import org.eclipse.collections.api.RichIterable;
import org.eclipse.collections.api.ShortIterable;
import org.eclipse.collections.api.bag.MutableBag;
import org.eclipse.collections.api.bag.primitive.MutableBooleanBag;
import org.eclipse.collections.api.bag.primitive.MutableByteBag;
import org.eclipse.collections.api.bag.primitive.MutableCharBag;
import org.eclipse.collections.api.bag.primitive.MutableDoubleBag;
import org.eclipse.collections.api.bag.primitive.MutableFloatBag;
import org.eclipse.collections.api.bag.primitive.MutableIntBag;
import org.eclipse.collections.api.bag.primitive.MutableLongBag;
import org.eclipse.collections.api.bag.primitive.MutableShortBag;
import org.eclipse.collections.api.bag.sorted.MutableSortedBag;
import org.eclipse.collections.api.bimap.MutableBiMap;
import org.eclipse.collections.api.block.function.Function;
import org.eclipse.collections.api.block.function.Function0;
import org.eclipse.collections.api.block.function.Function2;
import org.eclipse.collections.api.block.function.primitive.BooleanFunction;
import org.eclipse.collections.api.block.function.primitive.ByteFunction;
import org.eclipse.collections.api.block.function.primitive.CharFunction;
import org.eclipse.collections.api.block.function.primitive.DoubleFunction;
import org.eclipse.collections.api.block.function.primitive.DoubleObjectToDoubleFunction;
import org.eclipse.collections.api.block.function.primitive.FloatFunction;
import org.eclipse.collections.api.block.function.primitive.FloatObjectToFloatFunction;
import org.eclipse.collections.api.block.function.primitive.IntFunction;
import org.eclipse.collections.api.block.function.primitive.IntObjectToIntFunction;
import org.eclipse.collections.api.block.function.primitive.LongFunction;
import org.eclipse.collections.api.block.function.primitive.LongObjectToLongFunction;
import org.eclipse.collections.api.block.function.primitive.ShortFunction;
import org.eclipse.collections.api.block.predicate.Predicate;
import org.eclipse.collections.api.block.predicate.Predicate2;
import org.eclipse.collections.api.block.procedure.Procedure;
import org.eclipse.collections.api.block.procedure.Procedure2;
import org.eclipse.collections.api.block.procedure.primitive.ObjectIntProcedure;
import org.eclipse.collections.api.collection.primitive.MutableBooleanCollection;
import org.eclipse.collections.api.collection.primitive.MutableByteCollection;
import org.eclipse.collections.api.collection.primitive.MutableCharCollection;
import org.eclipse.collections.api.collection.primitive.MutableDoubleCollection;
import org.eclipse.collections.api.collection.primitive.MutableFloatCollection;
import org.eclipse.collections.api.collection.primitive.MutableIntCollection;
import org.eclipse.collections.api.collection.primitive.MutableLongCollection;
import org.eclipse.collections.api.collection.primitive.MutableShortCollection;
import org.eclipse.collections.api.factory.Maps;
import org.eclipse.collections.api.list.MutableList;
import org.eclipse.collections.api.map.ImmutableMap;
import org.eclipse.collections.api.map.MutableMap;
import org.eclipse.collections.api.map.MutableMapIterable;
import org.eclipse.collections.api.map.primitive.MutableObjectDoubleMap;
import org.eclipse.collections.api.map.primitive.MutableObjectLongMap;
import org.eclipse.collections.api.map.sorted.MutableSortedMap;
import org.eclipse.collections.api.multimap.MutableMultimap;
import org.eclipse.collections.api.multimap.bag.MutableBagMultimap;
import org.eclipse.collections.api.multimap.set.MutableSetMultimap;
import org.eclipse.collections.api.ordered.OrderedIterable;
import org.eclipse.collections.api.partition.bag.PartitionMutableBag;
import org.eclipse.collections.api.set.MutableSet;
import org.eclipse.collections.api.set.sorted.MutableSortedSet;
import org.eclipse.collections.api.tuple.Pair;
import org.eclipse.collections.impl.UnmodifiableIteratorAdapter;
import org.eclipse.collections.impl.UnmodifiableMap;
import org.eclipse.collections.impl.tuple.AbstractImmutableEntry;
import org.eclipse.collections.impl.utility.LazyIterate;

/**
 * An unmodifiable view of a map.
 *
 * @see MutableMap#asUnmodifiable()
 */
public class UnmodifiableMutableMap
        extends UnmodifiableMap
        implements MutableMap
{
    private static final long serialVersionUID = 1L;

    protected UnmodifiableMutableMap(MutableMap map)
    {
        super(map);
    }

    /**
     * This method will take a MutableMap and wrap it directly in a UnmodifiableMutableMap. It will
     * take any other non-Eclipse-Collections map and first adapt it will a MapAdapter, and then return a
     * UnmodifiableMutableMap that wraps the adapter.
     */
    public static > UnmodifiableMutableMap of(M map)
    {
        if (map == null)
        {
            throw new IllegalArgumentException("cannot create a UnmodifiableMutableMap for null");
        }
        return new UnmodifiableMutableMap<>(MapAdapter.adapt(map));
    }

    @Override
    public MutableMap newEmpty()
    {
        return this.getMutableMap().newEmpty();
    }

    @Override
    public boolean notEmpty()
    {
        return this.getMutableMap().notEmpty();
    }

    @Override
    public void forEachValue(Procedure procedure)
    {
        this.getMutableMap().forEachValue(procedure);
    }

    @Override
    public void forEachKey(Procedure procedure)
    {
        this.getMutableMap().forEachKey(procedure);
    }

    @Override
    public void forEachKeyValue(Procedure2 procedure)
    {
        this.getMutableMap().forEachKeyValue(procedure);
    }

    @Override
    public MutableMap flipUniqueValues()
    {
        return this.getMutableMap().flipUniqueValues();
    }

    @Override
    public  MutableMap collectKeysAndValues(
            Iterable iterable,
            Function keyFunction,
            Function valueFunction)
    {
        throw new UnsupportedOperationException("Cannot call collectKeysAndValues() on " + this.getClass().getSimpleName());
    }

    @Override
    public V removeKey(K key)
    {
        throw new UnsupportedOperationException("Cannot call removeKey() on " + this.getClass().getSimpleName());
    }

    @Override
    public boolean removeAllKeys(Set keys)
    {
        throw new UnsupportedOperationException("Cannot call removeAllKeys() on " + this.getClass().getSimpleName());
    }

    @Override
    public boolean removeIf(Predicate2 predicate)
    {
        throw new UnsupportedOperationException("Cannot call removeIf() on " + this.getClass().getSimpleName());
    }

    @Override
    public V updateValue(K key, Function0 factory, Function function)
    {
        throw new UnsupportedOperationException("Cannot call updateValue() on " + this.getClass().getSimpleName());
    }

    @Override
    public 

V updateValueWith( K key, Function0 factory, Function2 function, P parameter) { throw new UnsupportedOperationException("Cannot call updateValueWith() on " + this.getClass().getSimpleName()); } @Override public V getIfAbsentPut(K key, Function0 function) { V result = this.get(key); if (this.isAbsent(result, key)) { throw new UnsupportedOperationException("Cannot mutate " + this.getClass().getSimpleName()); } return result; } @Override public V getIfAbsentPut(K key, V value) { V result = this.get(key); if (this.isAbsent(result, key)) { throw new UnsupportedOperationException("Cannot mutate " + this.getClass().getSimpleName()); } return result; } @Override public V getIfAbsentPutWithKey(K key, Function function) { return this.getIfAbsentPutWith(key, function, key); } @Override public

V getIfAbsentPutWith( K key, Function function, P parameter) { V result = this.get(key); if (this.isAbsent(result, key)) { throw new UnsupportedOperationException("Cannot mutate " + this.getClass().getSimpleName()); } return result; } @Override public V getIfAbsent(K key, Function0 function) { return this.getMutableMap().getIfAbsent(key, function); } @Override public V getIfAbsentValue(K key, V value) { return this.getMutableMap().getIfAbsentValue(key, value); } @Override public

V getIfAbsentWith( K key, Function function, P parameter) { return this.getMutableMap().getIfAbsentWith(key, function, parameter); } private boolean isAbsent(V result, K key) { return result == null && !this.containsKey(key); } @Override public A ifPresentApply(K key, Function function) { return this.getMutableMap().ifPresentApply(key, function); } @Override public V putPair(Pair keyValuePair) { throw new UnsupportedOperationException("Cannot call putPair() on " + this.getClass().getSimpleName()); } @Override public V add(Pair keyValuePair) { throw new UnsupportedOperationException("Cannot call add() on " + this.getClass().getSimpleName()); } @Override public MutableMap withKeyValue(K key, V value) { throw new UnsupportedOperationException("Cannot call withKeyValue() on " + this.getClass().getSimpleName()); } @Override public MutableMap withMap(Map map) { throw new UnsupportedOperationException("Cannot call withMap() on " + this.getClass().getSimpleName()); } @Override public MutableMap withAllKeyValues(Iterable> keyValues) { throw new UnsupportedOperationException("Cannot call withAllKeyValues() on " + this.getClass().getSimpleName()); } @Override public MutableMap withAllKeyValueArguments(Pair... keyValuePairs) { throw new UnsupportedOperationException("Cannot call withAllKeyValueArguments() on " + this.getClass().getSimpleName()); } @Override public MutableMap withoutKey(K key) { throw new UnsupportedOperationException("Cannot call withoutKey() on " + this.getClass().getSimpleName()); } @Override public MutableMap withoutAllKeys(Iterable keys) { throw new UnsupportedOperationException("Cannot call withoutAllKeys() on " + this.getClass().getSimpleName()); } @Override public MutableSetMultimap flip() { return this.getMutableMap().flip(); } @Override public MutableMap clone() { return this; } @Override public MutableMap asUnmodifiable() { return this; } @Override public MutableMap asSynchronized() { return SynchronizedMutableMap.of(this); } @Override public MutableMap tap(Procedure procedure) { this.forEach(procedure); return this; } @Override public void each(Procedure procedure) { this.getMutableMap().forEach(procedure); } @Override public void forEachWithIndex(ObjectIntProcedure objectIntProcedure) { this.getMutableMap().forEachWithIndex(objectIntProcedure); } @Override public

void forEachWith(Procedure2 procedure, P parameter) { this.getMutableMap().forEachWith(procedure, parameter); } @Override public Iterator iterator() { return new UnmodifiableIteratorAdapter<>(this.getMutableMap().iterator()); } @Override public int hashCode() { return this.getMutableMap().hashCode(); } @Override public boolean equals(Object obj) { return this.getMutableMap().equals(obj); } protected MutableMap getMutableMap() { return (MutableMap) this.delegate; } @Override public RichIterable keysView() { return LazyIterate.adapt(this.keySet()); } @Override public RichIterable valuesView() { return LazyIterate.adapt(this.values()); } @Override public RichIterable> keyValuesView() { return LazyIterate.adapt(this.entrySet()).collect(AbstractImmutableEntry.getPairFunction()); } @Override public ImmutableMap toImmutable() { return Maps.immutable.withAll(this); } @Override public MutableMap collectValues(Function2 function) { return this.getMutableMap().collectValues(function); } @Override public MutableMap collect(Function2> function) { return this.getMutableMap().collect(function); } @Override public MutableMap select(Predicate2 predicate) { return this.getMutableMap().select(predicate); } @Override public MutableMap reject(Predicate2 predicate) { return this.getMutableMap().reject(predicate); } @Override public Pair detect(Predicate2 predicate) { return this.getMutableMap().detect(predicate); } @Override public Optional> detectOptional(Predicate2 predicate) { return this.getMutableMap().detectOptional(predicate); } @Override public boolean allSatisfy(Predicate predicate) { return this.getMutableMap().allSatisfy(predicate); } @Override public

boolean allSatisfyWith(Predicate2 predicate, P parameter) { return this.getMutableMap().allSatisfyWith(predicate, parameter); } @Override public boolean noneSatisfy(Predicate predicate) { return this.getMutableMap().noneSatisfy(predicate); } @Override public

boolean noneSatisfyWith(Predicate2 predicate, P parameter) { return this.getMutableMap().noneSatisfyWith(predicate, parameter); } @Override public boolean anySatisfy(Predicate predicate) { return this.getMutableMap().anySatisfy(predicate); } @Override public

boolean anySatisfyWith(Predicate2 predicate, P parameter) { return this.getMutableMap().anySatisfyWith(predicate, parameter); } @Override public void appendString(Appendable appendable) { this.getMutableMap().appendString(appendable); } @Override public void appendString(Appendable appendable, String separator) { this.getMutableMap().appendString(appendable, separator); } @Override public void appendString(Appendable appendable, String start, String separator, String end) { this.getMutableMap().appendString(appendable, start, separator, end); } @Override public MutableBag toBag() { return this.getMutableMap().toBag(); } @Override public MutableSortedBag toSortedBag() { return this.getMutableMap().toSortedBag(); } @Override public MutableSortedBag toSortedBag(Comparator comparator) { return this.getMutableMap().toSortedBag(comparator); } @Override public > MutableSortedBag toSortedBagBy(Function function) { return this.getMutableMap().toSortedBagBy(function); } @Override public LazyIterable asLazy() { return this.getMutableMap().asLazy(); } @Override public > R into(R target) { return this.getMutableMap().into(target); } @Override public MutableList toList() { return this.getMutableMap().toList(); } @Override public MutableMap toMap( Function keyFunction, Function valueFunction) { return this.getMutableMap().toMap(keyFunction, valueFunction); } @Override public > R toMap( Function keyFunction, Function valueFunction, R target) { return this.getMutableMap().toMap(keyFunction, valueFunction, target); } @Override public MutableSortedMap toSortedMap( Function keyFunction, Function valueFunction) { return this.getMutableMap().toSortedMap(keyFunction, valueFunction); } @Override public MutableSortedMap toSortedMap( Comparator comparator, Function keyFunction, Function valueFunction) { return this.getMutableMap().toSortedMap(comparator, keyFunction, valueFunction); } @Override public , NK, NV> MutableSortedMap toSortedMapBy( Function sortBy, Function keyFunction, Function valueFunction) { return this.getMutableMap().toSortedMapBy(sortBy, keyFunction, valueFunction); } @Override public MutableBiMap toBiMap( Function keyFunction, Function valueFunction) { return this.getMutableMap().toBiMap(keyFunction, valueFunction); } @Override public MutableSet toSet() { return this.getMutableMap().toSet(); } @Override public MutableList toSortedList() { return this.getMutableMap().toSortedList(); } @Override public MutableList toSortedList(Comparator comparator) { return this.getMutableMap().toSortedList(comparator); } @Override public > MutableList toSortedListBy(Function function) { return this.getMutableMap().toSortedListBy(function); } @Override public MutableSortedSet toSortedSet() { return this.getMutableMap().toSortedSet(); } @Override public MutableSortedSet toSortedSet(Comparator comparator) { return this.getMutableMap().toSortedSet(comparator); } @Override public > MutableSortedSet toSortedSetBy(Function function) { return this.getMutableMap().toSortedSetBy(function); } @Override public RichIterable> chunk(int size) { return this.getMutableMap().chunk(size); } @Override public > C collect(Function function, C target) { return this.getMutableMap().collect(function, target); } @Override public > C collectIf(Predicate predicate, Function function, C target) { return this.getMutableMap().collectIf(predicate, function, target); } @Override public MutableBag collectWith(Function2 function, P parameter) { return this.getMutableMap().collectWith(function, parameter); } @Override public > C collectWith(Function2 function, P parameter, C targetCollection) { return this.getMutableMap().collectWith(function, parameter, targetCollection); } @Override public boolean contains(Object object) { return this.containsValue(object); } @Override public boolean containsAllArguments(Object... elements) { return this.getMutableMap().containsAllArguments(elements); } @Override public boolean containsAllIterable(Iterable source) { return this.getMutableMap().containsAllIterable(source); } @Override public boolean containsAll(Collection source) { return this.containsAllIterable(source); } @Override public int count(Predicate predicate) { return this.getMutableMap().count(predicate); } @Override public

int countWith(Predicate2 predicate, P parameter) { return this.getMutableMap().countWith(predicate, parameter); } @Override public V detect(Predicate predicate) { return this.getMutableMap().detect(predicate); } @Override public

V detectWith(Predicate2 predicate, P parameter) { return this.getMutableMap().detectWith(predicate, parameter); } @Override public Optional detectOptional(Predicate predicate) { return this.getMutableMap().detectOptional(predicate); } @Override public

Optional detectWithOptional(Predicate2 predicate, P parameter) { return this.getMutableMap().detectWithOptional(predicate, parameter); } @Override public V detectIfNone(Predicate predicate, Function0 function) { return this.getMutableMap().detectIfNone(predicate, function); } @Override public

V detectWithIfNone(Predicate2 predicate, P parameter, Function0 function) { return this.getMutableMap().detectWithIfNone(predicate, parameter, function); } @Override public > C flatCollect(Function> function, C target) { return this.getMutableMap().flatCollect(function, target); } @Override public V getFirst() { return this.getMutableMap().getFirst(); } @Override public V getLast() { return this.getMutableMap().getLast(); } @Override public V getOnly() { return this.getMutableMap().getOnly(); } @Override public MutableBagMultimap groupBy(Function function) { return this.getMutableMap().groupBy(function); } @Override public > C groupBy(Function function, C target) { return this.getMutableMap().groupBy(function, target); } @Override public MutableBagMultimap groupByEach(Function> function) { return this.getMutableMap().groupByEach(function); } @Override public > C groupByEach(Function> function, C target) { return this.getMutableMap().groupByEach(function, target); } @Override public MutableMap groupByUniqueKey(Function function) { return this.getMutableMap().groupByUniqueKey(function); } @Override public > R groupByUniqueKey(Function function, R target) { return this.getMutableMap().groupByUniqueKey(function, target); } @Override public IV injectInto(IV injectedValue, Function2 function) { return this.getMutableMap().injectInto(injectedValue, function); } @Override public int injectInto(int injectedValue, IntObjectToIntFunction function) { return this.getMutableMap().injectInto(injectedValue, function); } @Override public long injectInto(long injectedValue, LongObjectToLongFunction function) { return this.getMutableMap().injectInto(injectedValue, function); } @Override public double injectInto(double injectedValue, DoubleObjectToDoubleFunction function) { return this.getMutableMap().injectInto(injectedValue, function); } @Override public float injectInto(float injectedValue, FloatObjectToFloatFunction function) { return this.getMutableMap().injectInto(injectedValue, function); } @Override public long sumOfInt(IntFunction function) { return this.getMutableMap().sumOfInt(function); } @Override public double sumOfFloat(FloatFunction function) { return this.getMutableMap().sumOfFloat(function); } @Override public long sumOfLong(LongFunction function) { return this.getMutableMap().sumOfLong(function); } @Override public double sumOfDouble(DoubleFunction function) { return this.getMutableMap().sumOfDouble(function); } @Override public MutableObjectLongMap sumByInt(Function groupBy, IntFunction function) { return this.getMutableMap().sumByInt(groupBy, function); } @Override public MutableObjectDoubleMap sumByFloat(Function groupBy, FloatFunction function) { return this.getMutableMap().sumByFloat(groupBy, function); } @Override public MutableObjectLongMap sumByLong(Function groupBy, LongFunction function) { return this.getMutableMap().sumByLong(groupBy, function); } @Override public MutableObjectDoubleMap sumByDouble(Function groupBy, DoubleFunction function) { return this.getMutableMap().sumByDouble(groupBy, function); } @Override public String makeString() { return this.getMutableMap().makeString(); } @Override public String makeString(String separator) { return this.getMutableMap().makeString(separator); } @Override public String makeString(String start, String separator, String end) { return this.getMutableMap().makeString(start, separator, end); } @Override public V max() { return this.getMutableMap().max(); } @Override public V max(Comparator comparator) { return this.getMutableMap().max(comparator); } @Override public > V maxBy(Function function) { return this.getMutableMap().maxBy(function); } @Override public V min() { return this.getMutableMap().min(); } @Override public V min(Comparator comparator) { return this.getMutableMap().min(comparator); } @Override public > V minBy(Function function) { return this.getMutableMap().minBy(function); } @Override public Object[] toArray() { return this.getMutableMap().toArray(); } @Override public T[] toArray(T[] a) { return this.getMutableMap().toArray(a); } @Override public >> R zip(Iterable that, R target) { return this.getMutableMap().zip(that, target); } @Override public >> R zipWithIndex(R target) { return this.getMutableMap().zipWithIndex(target); } @Override public MutableBag collect(Function function) { return this.getMutableMap().collect(function); } @Override public MutableBooleanBag collectBoolean(BooleanFunction booleanFunction) { return this.getMutableMap().collectBoolean(booleanFunction); } @Override public R collectBoolean(BooleanFunction booleanFunction, R target) { return this.getMutableMap().collectBoolean(booleanFunction, target); } @Override public R flatCollectBoolean( Function function, R target) { return this.getMutableMap().flatCollectBoolean(function, target); } @Override public MutableByteBag collectByte(ByteFunction byteFunction) { return this.getMutableMap().collectByte(byteFunction); } @Override public R collectByte(ByteFunction byteFunction, R target) { return this.getMutableMap().collectByte(byteFunction, target); } @Override public R flatCollectByte( Function function, R target) { return this.getMutableMap().flatCollectByte(function, target); } @Override public MutableCharBag collectChar(CharFunction charFunction) { return this.getMutableMap().collectChar(charFunction); } @Override public R collectChar(CharFunction charFunction, R target) { return this.getMutableMap().collectChar(charFunction, target); } @Override public R flatCollectChar( Function function, R target) { return this.getMutableMap().flatCollectChar(function, target); } @Override public MutableDoubleBag collectDouble(DoubleFunction doubleFunction) { return this.getMutableMap().collectDouble(doubleFunction); } @Override public R collectDouble(DoubleFunction doubleFunction, R target) { return this.getMutableMap().collectDouble(doubleFunction, target); } @Override public R flatCollectDouble( Function function, R target) { return this.getMutableMap().flatCollectDouble(function, target); } @Override public MutableFloatBag collectFloat(FloatFunction floatFunction) { return this.getMutableMap().collectFloat(floatFunction); } @Override public R collectFloat(FloatFunction floatFunction, R target) { return this.getMutableMap().collectFloat(floatFunction, target); } @Override public R flatCollectFloat( Function function, R target) { return this.getMutableMap().flatCollectFloat(function, target); } @Override public MutableIntBag collectInt(IntFunction intFunction) { return this.getMutableMap().collectInt(intFunction); } @Override public R collectInt(IntFunction intFunction, R target) { return this.getMutableMap().collectInt(intFunction, target); } @Override public R flatCollectInt( Function function, R target) { return this.getMutableMap().flatCollectInt(function, target); } @Override public MutableLongBag collectLong(LongFunction longFunction) { return this.getMutableMap().collectLong(longFunction); } @Override public R collectLong(LongFunction longFunction, R target) { return this.getMutableMap().collectLong(longFunction, target); } @Override public R flatCollectLong( Function function, R target) { return this.getMutableMap().flatCollectLong(function, target); } @Override public MutableShortBag collectShort(ShortFunction shortFunction) { return this.getMutableMap().collectShort(shortFunction); } @Override public R collectShort(ShortFunction shortFunction, R target) { return this.getMutableMap().collectShort(shortFunction, target); } @Override public R flatCollectShort( Function function, R target) { return this.getMutableMap().flatCollectShort(function, target); } @Override public MutableBag collectIf(Predicate predicate, Function function) { return this.getMutableMap().collectIf(predicate, function); } @Override public MutableBag flatCollect(Function> function) { return this.getMutableMap().flatCollect(function); } @Override public MutableBag select(Predicate predicate) { return this.getMutableMap().select(predicate); } @Override public > R select(Predicate predicate, R target) { return this.getMutableMap().select(predicate, target); } @Override public

MutableBag selectWith(Predicate2 predicate, P parameter) { return this.getMutableMap().selectWith(predicate, parameter); } @Override public > R selectWith(Predicate2 predicate, P parameter, R targetCollection) { return this.getMutableMap().selectWith(predicate, parameter, targetCollection); } @Override public MutableBag reject(Predicate predicate) { return this.getMutableMap().reject(predicate); } @Override public > R reject(Predicate predicate, R target) { return this.getMutableMap().reject(predicate, target); } @Override public

MutableBag rejectWith(Predicate2 predicate, P parameter) { return this.getMutableMap().rejectWith(predicate, parameter); } @Override public > R rejectWith(Predicate2 predicate, P parameter, R targetCollection) { return this.getMutableMap().rejectWith(predicate, parameter, targetCollection); } @Override public MutableBag selectInstancesOf(Class clazz) { return this.getMutableMap().selectInstancesOf(clazz); } @Override public PartitionMutableBag partition(Predicate predicate) { return this.getMutableMap().partition(predicate); } @Override public

PartitionMutableBag partitionWith(Predicate2 predicate, P parameter) { return this.getMutableMap().partitionWith(predicate, parameter); } /** * @deprecated in 6.0. Use {@link OrderedIterable#zip(Iterable)} instead. */ @Override @Deprecated public MutableBag> zip(Iterable that) { return this.getMutableMap().zip(that); } /** * @deprecated in 6.0. Use {@link OrderedIterable#zipWithIndex()} instead. */ @Override @Deprecated public MutableSet> zipWithIndex() { return this.getMutableMap().zipWithIndex(); } @Override public MutableMap aggregateInPlaceBy( Function groupBy, Function0 zeroValueFactory, Procedure2 mutatingAggregator) { return this.getMutableMap().aggregateInPlaceBy(groupBy, zeroValueFactory, mutatingAggregator); } @Override public MutableMap aggregateBy( Function groupBy, Function0 zeroValueFactory, Function2 nonMutatingAggregator) { return this.getMutableMap().aggregateBy(groupBy, zeroValueFactory, nonMutatingAggregator); } @Override public MutableMap aggregateBy( Function keyFunction, Function valueFunction, Function0 zeroValueFactory, Function2 nonMutatingAggregator) { return this.getMutableMap().aggregateBy(keyFunction, valueFunction, zeroValueFactory, nonMutatingAggregator); } }