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

com.gs.collections.api.map.primitive.MutablePrimitiveObjectMap Maven / Gradle / Ivy

/*
 * Copyright 2015 Goldman Sachs.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.gs.collections.api.map.primitive;

import com.gs.collections.api.bag.MutableBag;
import com.gs.collections.api.block.function.Function;
import com.gs.collections.api.block.function.Function0;
import com.gs.collections.api.block.function.Function2;
import com.gs.collections.api.block.function.primitive.BooleanFunction;
import com.gs.collections.api.block.function.primitive.ByteFunction;
import com.gs.collections.api.block.function.primitive.CharFunction;
import com.gs.collections.api.block.function.primitive.DoubleFunction;
import com.gs.collections.api.block.function.primitive.FloatFunction;
import com.gs.collections.api.block.function.primitive.IntFunction;
import com.gs.collections.api.block.function.primitive.LongFunction;
import com.gs.collections.api.block.function.primitive.ShortFunction;
import com.gs.collections.api.block.predicate.Predicate;
import com.gs.collections.api.block.predicate.Predicate2;
import com.gs.collections.api.block.procedure.Procedure2;
import com.gs.collections.api.collection.MutableCollection;
import com.gs.collections.api.collection.primitive.MutableBooleanCollection;
import com.gs.collections.api.collection.primitive.MutableByteCollection;
import com.gs.collections.api.collection.primitive.MutableCharCollection;
import com.gs.collections.api.collection.primitive.MutableDoubleCollection;
import com.gs.collections.api.collection.primitive.MutableFloatCollection;
import com.gs.collections.api.collection.primitive.MutableIntCollection;
import com.gs.collections.api.collection.primitive.MutableLongCollection;
import com.gs.collections.api.collection.primitive.MutableShortCollection;
import com.gs.collections.api.map.MutableMap;
import com.gs.collections.api.multimap.MutableMultimap;
import com.gs.collections.api.multimap.bag.MutableBagMultimap;
import com.gs.collections.api.ordered.OrderedIterable;
import com.gs.collections.api.partition.PartitionMutableCollection;
import com.gs.collections.api.partition.bag.PartitionMutableBag;
import com.gs.collections.api.set.MutableSet;
import com.gs.collections.api.tuple.Pair;

public interface MutablePrimitiveObjectMap
{
    void clear();

     MutableMap aggregateInPlaceBy(Function groupBy, Function0 zeroValueFactory, Procedure2 mutatingAggregator);

     MutableMap aggregateBy(Function groupBy, Function0 zeroValueFactory, Function2 nonMutatingAggregator);

     MutableBagMultimap groupByEach(Function> function);

     MutableBagMultimap groupBy(Function function);

     MutableMap groupByUniqueKey(Function function);

     MutableBag collectIf(Predicate predicate, Function function);

     MutableCollection collect(Function function);

    MutableBooleanCollection collectBoolean(BooleanFunction booleanFunction);

    MutableByteCollection collectByte(ByteFunction byteFunction);

    MutableCharCollection collectChar(CharFunction charFunction);

    MutableDoubleCollection collectDouble(DoubleFunction doubleFunction);

    MutableFloatCollection collectFloat(FloatFunction floatFunction);

    MutableIntCollection collectInt(IntFunction intFunction);

    MutableLongCollection collectLong(LongFunction longFunction);

    MutableShortCollection collectShort(ShortFunction shortFunction);

     MutableCollection collectWith(Function2 function, P parameter);

     MutableBag selectInstancesOf(Class clazz);

    MutableCollection select(Predicate predicate);

    

MutableCollection selectWith(Predicate2 predicate, P parameter); MutableCollection reject(Predicate predicate);

MutableCollection rejectWith(Predicate2 predicate, P parameter); PartitionMutableBag partition(Predicate predicate);

PartitionMutableBag partitionWith(Predicate2 predicate, P parameter); /** * @deprecated in 7.0. Use {@link OrderedIterable#zip(Iterable)} instead. */ @Deprecated MutableBag> zip(Iterable that); /** * @deprecated in 7.0. Use {@link OrderedIterable#zipWithIndex()} instead. */ @Deprecated MutableSet> zipWithIndex(); }