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

org.eclipse.collections.api.map.primitive.MutablePrimitiveObjectMap Maven / Gradle / Ivy

There is a newer version: 12.0.0.M3
Show newest version
/*
 * Copyright (c) 2015 Goldman Sachs.
 * 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.api.map.primitive;

import org.eclipse.collections.api.bag.MutableBag;
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.FloatFunction;
import org.eclipse.collections.api.block.function.primitive.IntFunction;
import org.eclipse.collections.api.block.function.primitive.LongFunction;
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.Procedure2;
import org.eclipse.collections.api.collection.MutableCollection;
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.map.MutableMap;
import org.eclipse.collections.api.multimap.bag.MutableBagMultimap;
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.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(); }