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

org.eclipse.collections.api.map.MutableOrderedMap 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;

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.Procedure;
import org.eclipse.collections.api.block.procedure.Procedure2;
import org.eclipse.collections.api.list.MutableList;
import org.eclipse.collections.api.list.primitive.MutableBooleanList;
import org.eclipse.collections.api.list.primitive.MutableByteList;
import org.eclipse.collections.api.list.primitive.MutableCharList;
import org.eclipse.collections.api.list.primitive.MutableDoubleList;
import org.eclipse.collections.api.list.primitive.MutableFloatList;
import org.eclipse.collections.api.list.primitive.MutableIntList;
import org.eclipse.collections.api.list.primitive.MutableLongList;
import org.eclipse.collections.api.list.primitive.MutableShortList;
import org.eclipse.collections.api.multimap.list.MutableListMultimap;
import org.eclipse.collections.api.partition.list.PartitionMutableList;
import org.eclipse.collections.api.tuple.Pair;

public interface MutableOrderedMap extends OrderedMap, MutableMapIterable
{
    MutableOrderedMap tap(Procedure procedure);

    MutableOrderedMap flipUniqueValues();

    MutableListMultimap flip();

    MutableOrderedMap select(Predicate2 predicate);

    MutableOrderedMap reject(Predicate2 predicate);

     MutableOrderedMap collect(Function2> function);

     MutableOrderedMap collectValues(Function2 function);

    MutableOrderedMap toReversed();

    MutableOrderedMap take(int count);

    MutableOrderedMap takeWhile(Predicate predicate);

    MutableOrderedMap drop(int count);

    MutableOrderedMap dropWhile(Predicate predicate);

    PartitionMutableList partitionWhile(Predicate predicate);

    MutableList distinct();

    MutableList select(Predicate predicate);

    

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

MutableList rejectWith(Predicate2 predicate, P parameter); PartitionMutableList partition(Predicate predicate);

PartitionMutableList partitionWith(Predicate2 predicate, P parameter); MutableBooleanList collectBoolean(BooleanFunction booleanFunction); MutableByteList collectByte(ByteFunction byteFunction); MutableCharList collectChar(CharFunction charFunction); MutableDoubleList collectDouble(DoubleFunction doubleFunction); MutableFloatList collectFloat(FloatFunction floatFunction); MutableIntList collectInt(IntFunction intFunction); MutableLongList collectLong(LongFunction longFunction); MutableShortList collectShort(ShortFunction shortFunction); MutableList> zip(Iterable that); MutableList> zipWithIndex(); MutableList collectWith(Function2 function, P parameter); MutableList collectIf(Predicate predicate, Function function); MutableList selectInstancesOf(Class clazz); MutableList flatCollect(Function> function); MutableListMultimap groupBy(Function function); MutableListMultimap groupByEach(Function> function); MutableOrderedMap groupByUniqueKey(Function function); MutableOrderedMap aggregateInPlaceBy(Function groupBy, Function0 zeroValueFactory, Procedure2 mutatingAggregator); MutableOrderedMap aggregateBy(Function groupBy, Function0 zeroValueFactory, Function2 nonMutatingAggregator); }