![JAR search and dependency download from the Maven repository](/logo.png)
com.gs.collections.api.map.ImmutableOrderedMap 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;
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.Procedure;
import com.gs.collections.api.block.procedure.Procedure2;
import com.gs.collections.api.list.ImmutableList;
import com.gs.collections.api.list.primitive.ImmutableBooleanList;
import com.gs.collections.api.list.primitive.ImmutableByteList;
import com.gs.collections.api.list.primitive.ImmutableCharList;
import com.gs.collections.api.list.primitive.ImmutableDoubleList;
import com.gs.collections.api.list.primitive.ImmutableFloatList;
import com.gs.collections.api.list.primitive.ImmutableIntList;
import com.gs.collections.api.list.primitive.ImmutableLongList;
import com.gs.collections.api.list.primitive.ImmutableShortList;
import com.gs.collections.api.multimap.list.ImmutableListMultimap;
import com.gs.collections.api.partition.list.PartitionImmutableList;
import com.gs.collections.api.tuple.Pair;
public interface ImmutableOrderedMap extends OrderedMap, ImmutableMapIterable
{
ImmutableOrderedMap tap(Procedure super V> procedure);
ImmutableOrderedMap flipUniqueValues();
ImmutableListMultimap flip();
ImmutableOrderedMap select(Predicate2 super K, ? super V> predicate);
ImmutableOrderedMap reject(Predicate2 super K, ? super V> predicate);
ImmutableOrderedMap collect(Function2 super K, ? super V, Pair> function);
ImmutableOrderedMap collectValues(Function2 super K, ? super V, ? extends R> function);
ImmutableOrderedMap toReversed();
ImmutableOrderedMap take(int count);
ImmutableOrderedMap takeWhile(Predicate super V> predicate);
ImmutableOrderedMap drop(int count);
ImmutableOrderedMap dropWhile(Predicate super V> predicate);
PartitionImmutableList partitionWhile(Predicate super V> predicate);
ImmutableList distinct();
ImmutableList select(Predicate super V> predicate);
ImmutableList selectWith(Predicate2 super V, ? super P> predicate, P parameter);
ImmutableList reject(Predicate super V> predicate);
ImmutableList rejectWith(Predicate2 super V, ? super P> predicate, P parameter);
PartitionImmutableList partition(Predicate super V> predicate);
PartitionImmutableList partitionWith(Predicate2 super V, ? super P> predicate, P parameter);
ImmutableBooleanList collectBoolean(BooleanFunction super V> booleanFunction);
ImmutableByteList collectByte(ByteFunction super V> byteFunction);
ImmutableCharList collectChar(CharFunction super V> charFunction);
ImmutableDoubleList collectDouble(DoubleFunction super V> doubleFunction);
ImmutableFloatList collectFloat(FloatFunction super V> floatFunction);
ImmutableIntList collectInt(IntFunction super V> intFunction);
ImmutableLongList collectLong(LongFunction super V> longFunction);
ImmutableShortList collectShort(ShortFunction super V> shortFunction);
ImmutableList> zip(Iterable that);
ImmutableList> zipWithIndex();
ImmutableList collectWith(Function2 super V, ? super P, ? extends V1> function, P parameter);
ImmutableList collectIf(Predicate super V> predicate, Function super V, ? extends V1> function);
ImmutableList selectInstancesOf(Class clazz);
ImmutableList flatCollect(Function super V, ? extends Iterable> function);
ImmutableListMultimap groupBy(Function super V, ? extends V1> function);
ImmutableListMultimap groupByEach(Function super V, ? extends Iterable> function);
ImmutableOrderedMap groupByUniqueKey(Function super V, ? extends V1> function);
ImmutableOrderedMap aggregateInPlaceBy(Function super V, ? extends KK> groupBy, Function0 extends VV> zeroValueFactory, Procedure2 super VV, ? super V> mutatingAggregator);
ImmutableOrderedMap aggregateBy(Function super V, ? extends KK> groupBy, Function0 extends VV> zeroValueFactory, Function2 super VV, ? super V, ? extends VV> nonMutatingAggregator);
}