Class OrderedMapAdapter<K,V>
- java.lang.Object
-
- org.eclipse.collections.impl.AbstractRichIterable<V>
-
- org.eclipse.collections.impl.map.AbstractMapIterable<K,V>
-
- org.eclipse.collections.impl.map.ordered.mutable.OrderedMapAdapter<K,V>
-
- All Implemented Interfaces:
Serializable,Iterable<V>,Map<K,V>,InternalIterable<V>,MapIterable<K,V>,MutableMapIterable<K,V>,MutableOrderedMap<K,V>,OrderedMap<K,V>,OrderedIterable<V>,ReversibleIterable<V>,RichIterable<V>
public class OrderedMapAdapter<K,V> extends AbstractMapIterable<K,V> implements MutableOrderedMap<K,V>, Serializable
- Since:
- 9.2
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <K,V>
MutableOrderedMap<K,V>adapt(Map<K,V> map)MutableOrderedMap<K,V>asSynchronized()MutableOrderedMap<K,V>asUnmodifiable()voidclear()MutableOrderedMap<K,V>clone()<R> MutableList<R>collect(Function<? super V,? extends R> function)<K2,V2>
MutableOrderedMap<K2,V2>collect(Function2<? super K,? super V,Pair<K2,V2>> function)MutableBooleanListcollectBoolean(BooleanFunction<? super V> booleanFunction)MutableByteListcollectByte(ByteFunction<? super V> byteFunction)MutableCharListcollectChar(CharFunction<? super V> charFunction)MutableDoubleListcollectDouble(DoubleFunction<? super V> doubleFunction)MutableFloatListcollectFloat(FloatFunction<? super V> floatFunction)<R> MutableList<R>collectIf(Predicate<? super V> predicate, Function<? super V,? extends R> function)MutableIntListcollectInt(IntFunction<? super V> intFunction)MutableLongListcollectLong(LongFunction<? super V> longFunction)MutableShortListcollectShort(ShortFunction<? super V> shortFunction)<R> MutableOrderedMap<K,R>collectValues(Function2<? super K,? super V,? extends R> function)<P,VV>
MutableList<VV>collectWith(Function2<? super V,? super P,? extends VV> function, P parameter)booleancontainsKey(Object key)booleancontainsValue(Object value)<S> booleancorresponds(OrderedIterable<S> other, Predicate2<? super V,? super S> predicate)<V1> MutableBag<V1>countBy(Function<? super V,? extends V1> function)<V1> MutableBag<V1>countByEach(Function<? super V,? extends Iterable<V1>> function)<V1,P>
MutableBag<V1>countByWith(Function2<? super V,? super P,? extends V1> function, P parameter)Pair<K,V>detect(Predicate2<? super K,? super V> predicate)intdetectIndex(Predicate<? super V> predicate)intdetectLastIndex(Predicate<? super V> predicate)Optional<Pair<K,V>>detectOptional(Predicate2<? super K,? super V> predicate)MutableList<V>distinct()MutableOrderedMap<K,V>drop(int count)MutableOrderedMap<K,V>dropWhile(Predicate<? super V> predicate)MutableSet<Map.Entry<K,V>>entrySet()booleanequals(Object o)<R> MutableList<R>flatCollect(Function<? super V,? extends Iterable<R>> function)MutableListMultimap<V,K>flip()MutableOrderedMap<V,K>flipUniqueValues()voidforEach(int startIndex, int endIndex, Procedure<? super V> procedure)voidforEachKeyValue(Procedure2<? super K,? super V> procedure)voidforEachWithIndex(int fromIndex, int toIndex, ObjectIntProcedure<? super V> objectIntProcedure)Vget(Object key)VgetIfAbsentPut(K key, Function0<? extends V> function)VgetIfAbsentPut(K key, V value)<P> VgetIfAbsentPutWith(K key, Function<? super P,? extends V> function, P parameter)VgetIfAbsentPutWithKey(K key, Function<? super K,? extends V> function)<VV> MutableListMultimap<VV,V>groupBy(Function<? super V,? extends VV> function)<VV> MutableListMultimap<VV,V>groupByEach(Function<? super V,? extends Iterable<VV>> function)<VV> MutableOrderedMap<VV,V>groupByUniqueKey(Function<? super V,? extends VV> function)inthashCode()booleanisEmpty()Iterator<V>iterator()MutableSet<K>keySet()RichIterable<K>keysView()RichIterable<Pair<K,V>>keyValuesView()MutableOrderedMap<K,V>newEmpty()PartitionMutableList<V>partition(Predicate<? super V> predicate)PartitionMutableList<V>partitionWhile(Predicate<? super V> predicate)<P> PartitionMutableList<V>partitionWith(Predicate2<? super V,? super P> predicate, P parameter)Vput(K key, V value)voidputAll(Map<? extends K,? extends V> map)voidputAllMapIterable(MapIterable<? extends K,? extends V> mapIterable)MutableList<V>reject(Predicate<? super V> predicate)MutableOrderedMap<K,V>reject(Predicate2<? super K,? super V> predicate)<P> MutableList<V>rejectWith(Predicate2<? super V,? super P> predicate, P parameter)Vremove(Object key)VremoveKey(K key)MutableList<V>select(Predicate<? super V> predicate)MutableOrderedMap<K,V>select(Predicate2<? super K,? super V> predicate)<S> MutableList<S>selectInstancesOf(Class<S> clazz)<P> MutableList<V>selectWith(Predicate2<? super V,? super P> predicate, P parameter)intsize()<V1> MutableObjectDoubleMap<V1>sumByDouble(Function<? super V,? extends V1> groupBy, DoubleFunction<? super V> function)<V1> MutableObjectDoubleMap<V1>sumByFloat(Function<? super V,? extends V1> groupBy, FloatFunction<? super V> function)<V1> MutableObjectLongMap<V1>sumByInt(Function<? super V,? extends V1> groupBy, IntFunction<? super V> function)<V1> MutableObjectLongMap<V1>sumByLong(Function<? super V,? extends V1> groupBy, LongFunction<? super V> function)MutableOrderedMap<K,V>take(int count)MutableOrderedMap<K,V>takeWhile(Predicate<? super V> predicate)MutableOrderedMap<K,V>tap(Procedure<? super V> procedure)ImmutableOrderedMap<K,V>toImmutable()MutableOrderedMap<K,V>toReversed()MutableStack<V>toStack()StringtoString()Returns a string with the elements of the iterable separated by commas with spaces and enclosed in square brackets.VupdateValue(K key, Function0<? extends V> factory, Function<? super V,? extends V> function)<P> VupdateValueWith(K key, Function0<? extends V> factory, Function2<? super V,? super P,? extends V> function, P parameter)MutableCollection<V>values()RichIterable<V>valuesView()MutableOrderedMap<K,V>withAllKeyValueArguments(Pair<? extends K,? extends V>... keyValues)MutableOrderedMap<K,V>withAllKeyValues(Iterable<? extends Pair<? extends K,? extends V>> keyValues)MutableOrderedMap<K,V>withKeyValue(K key, V value)MutableOrderedMap<K,V>withMap(Map<? extends K,? extends V> map)MutableOrderedMap<K,V>withMapIterable(MapIterable<? extends K,? extends V> mapIterable)MutableOrderedMap<K,V>withoutAllKeys(Iterable<? extends K> keys)MutableOrderedMap<K,V>withoutKey(K key)<S> MutableList<Pair<V,S>>zip(Iterable<S> that)MutableList<Pair<V,Integer>>zipWithIndex()-
Methods inherited from class org.eclipse.collections.impl.map.AbstractMapIterable
allSatisfy, allSatisfyWith, anySatisfy, anySatisfyWith, asLazy, chunk, contains, detect, detectIfNone, detectOptional, detectWith, detectWithIfNone, detectWithOptional, each, forEachKey, forEachValue, forEachWith, forEachWithIndex, getFirst, getIfAbsent, getIfAbsentValue, getIfAbsentWith, getLast, getOnly, getOrDefault, ifPresentApply, noneSatisfy, noneSatisfyWith, toArray, toArray
-
Methods inherited from class org.eclipse.collections.impl.AbstractRichIterable
appendString, appendString, collect, collectIf, collectWith, containsAll, containsAllArguments, containsAllIterable, count, countWith, flatCollect, forEach, groupBy, groupByEach, groupByUniqueKey, injectInto, injectInto, injectInto, injectInto, injectInto, into, max, max, maxBy, min, min, minBy, reject, rejectWith, select, selectWith, sumOfDouble, sumOfFloat, sumOfInt, sumOfLong, toBag, toBiMap, toList, toMap, toSet, toSortedBag, toSortedBag, toSortedBagBy, toSortedListBy, toSortedMap, toSortedMap, toSortedMapBy, toSortedSet, toSortedSet, toSortedSetBy, zip, zipWithIndex
-
Methods inherited from interface org.eclipse.collections.api.InternalIterable
forEach, forEachWith
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Methods inherited from interface org.eclipse.collections.api.map.MapIterable
forEachKey, forEachValue, getIfAbsent, getIfAbsentValue, getIfAbsentWith, ifPresentApply, injectIntoKeyValue, parallelStream, spliterator, stream
-
Methods inherited from interface org.eclipse.collections.api.map.MutableMapIterable
add, aggregateBy, aggregateBy, aggregateInPlaceBy, forEach, getOrDefault, putPair, removeAllKeys, removeIf
-
Methods inherited from interface org.eclipse.collections.api.map.MutableOrderedMap
flatCollectWith
-
Methods inherited from interface org.eclipse.collections.api.ordered.OrderedIterable
collectWithIndex, forEachWithIndex, getFirst, getFirstOptional, getLast, getLastOptional, indexOf, max, min, rejectWithIndex, selectWithIndex, zip, zipWithIndex
-
Methods inherited from interface org.eclipse.collections.api.ordered.ReversibleIterable
asReversed, collectWithIndex, reverseForEach, reverseForEachWithIndex
-
Methods inherited from interface org.eclipse.collections.api.RichIterable
aggregateBy, allSatisfy, allSatisfyWith, anySatisfy, anySatisfyWith, appendString, appendString, appendString, asLazy, chunk, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectIf, collectInt, collectLong, collectShort, collectWith, contains, containsAll, containsAllArguments, containsAllIterable, containsAny, containsAnyIterable, containsBy, containsNone, containsNoneIterable, count, countBy, countByEach, countByWith, countWith, detect, detectIfNone, detectOptional, detectWith, detectWithIfNone, detectWithOptional, each, flatCollect, flatCollectBoolean, flatCollectByte, flatCollectChar, flatCollectDouble, flatCollectFloat, flatCollectInt, flatCollectLong, flatCollectShort, flatCollectWith, forEach, getAny, getOnly, groupBy, groupByAndCollect, groupByEach, groupByUniqueKey, injectInto, injectInto, injectInto, injectInto, injectInto, injectIntoDouble, injectIntoFloat, injectIntoInt, injectIntoLong, into, makeString, makeString, makeString, makeString, max, maxBy, maxByOptional, maxOptional, maxOptional, min, minBy, minByOptional, minOptional, minOptional, noneSatisfy, noneSatisfyWith, notEmpty, reduce, reduceInPlace, reduceInPlace, reject, rejectWith, select, selectWith, summarizeDouble, summarizeFloat, summarizeInt, summarizeLong, sumOfDouble, sumOfFloat, sumOfInt, sumOfLong, toArray, toArray, toBag, toBiMap, toImmutableBag, toImmutableBiMap, toImmutableList, toImmutableMap, toImmutableSet, toImmutableSortedBag, toImmutableSortedBag, toImmutableSortedBagBy, toImmutableSortedList, toImmutableSortedList, toImmutableSortedListBy, toImmutableSortedSet, toImmutableSortedSet, toImmutableSortedSetBy, toList, toMap, toMap, toSet, toSortedBag, toSortedBag, toSortedBagBy, toSortedList, toSortedList, toSortedListBy, toSortedMap, toSortedMap, toSortedMapBy, toSortedSet, toSortedSet, toSortedSetBy
-
-
-
-
Method Detail
-
adapt
public static <K,V> MutableOrderedMap<K,V> adapt(Map<K,V> map)
-
equals
public boolean equals(Object o)
-
hashCode
public int hashCode()
-
newEmpty
public MutableOrderedMap<K,V> newEmpty()
- Specified by:
newEmptyin interfaceMutableMapIterable<K,V>
-
forEachKeyValue
public void forEachKeyValue(Procedure2<? super K,? super V> procedure)
- Specified by:
forEachKeyValuein interfaceMapIterable<K,V>
-
containsKey
public boolean containsKey(Object key)
- Specified by:
containsKeyin interfaceMap<K,V>- Specified by:
containsKeyin interfaceMapIterable<K,V>
-
containsValue
public boolean containsValue(Object value)
- Specified by:
containsValuein interfaceMap<K,V>- Specified by:
containsValuein interfaceMapIterable<K,V>
-
size
public int size()
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmptyin interfaceMap<K,V>- Specified by:
isEmptyin interfaceRichIterable<K>- Overrides:
isEmptyin classAbstractRichIterable<V>
-
entrySet
public MutableSet<Map.Entry<K,V>> entrySet()
-
toString
public String toString()
Description copied from class:AbstractRichIterableReturns a string with the elements of the iterable separated by commas with spaces and enclosed in square brackets.Assert.assertEquals("[]", Lists.mutable.empty().toString()); Assert.assertEquals("[1]", Lists.mutable.with(1).toString()); Assert.assertEquals("[1, 2, 3]", Lists.mutable.with(1, 2, 3).toString());- Specified by:
toStringin interfaceMapIterable<K,V>- Specified by:
toStringin interfaceRichIterable<K>- Overrides:
toStringin classAbstractRichIterable<V>- Returns:
- a string representation of this collection.
- See Also:
AbstractCollection.toString()
-
clone
public MutableOrderedMap<K,V> clone()
-
toReversed
public MutableOrderedMap<K,V> toReversed()
- Specified by:
toReversedin interfaceMutableOrderedMap<K,V>- Specified by:
toReversedin interfaceOrderedMap<K,V>- Specified by:
toReversedin interfaceReversibleIterable<K>
-
take
public MutableOrderedMap<K,V> take(int count)
- Specified by:
takein interfaceMutableOrderedMap<K,V>- Specified by:
takein interfaceOrderedMap<K,V>- Specified by:
takein interfaceReversibleIterable<K>
-
takeWhile
public MutableOrderedMap<K,V> takeWhile(Predicate<? super V> predicate)
- Specified by:
takeWhilein interfaceMutableOrderedMap<K,V>- Specified by:
takeWhilein interfaceOrderedIterable<K>- Specified by:
takeWhilein interfaceOrderedMap<K,V>- Specified by:
takeWhilein interfaceReversibleIterable<K>
-
drop
public MutableOrderedMap<K,V> drop(int count)
- Specified by:
dropin interfaceMutableOrderedMap<K,V>- Specified by:
dropin interfaceOrderedMap<K,V>- Specified by:
dropin interfaceReversibleIterable<K>
-
dropWhile
public MutableOrderedMap<K,V> dropWhile(Predicate<? super V> predicate)
- Specified by:
dropWhilein interfaceMutableOrderedMap<K,V>- Specified by:
dropWhilein interfaceOrderedIterable<K>- Specified by:
dropWhilein interfaceOrderedMap<K,V>- Specified by:
dropWhilein interfaceReversibleIterable<K>
-
partitionWhile
public PartitionMutableList<V> partitionWhile(Predicate<? super V> predicate)
- Specified by:
partitionWhilein interfaceMutableOrderedMap<K,V>- Specified by:
partitionWhilein interfaceOrderedIterable<K>- Specified by:
partitionWhilein interfaceOrderedMap<K,V>- Specified by:
partitionWhilein interfaceReversibleIterable<K>
-
distinct
public MutableList<V> distinct()
- Specified by:
distinctin interfaceMutableOrderedMap<K,V>- Specified by:
distinctin interfaceOrderedIterable<K>- Specified by:
distinctin interfaceOrderedMap<K,V>- Specified by:
distinctin interfaceReversibleIterable<K>
-
withKeyValue
public MutableOrderedMap<K,V> withKeyValue(K key, V value)
- Specified by:
withKeyValuein interfaceMutableMapIterable<K,V>- Specified by:
withKeyValuein interfaceMutableOrderedMap<K,V>
-
withMap
public MutableOrderedMap<K,V> withMap(Map<? extends K,? extends V> map)
- Specified by:
withMapin interfaceMutableMapIterable<K,V>- Specified by:
withMapin interfaceMutableOrderedMap<K,V>
-
withMapIterable
public MutableOrderedMap<K,V> withMapIterable(MapIterable<? extends K,? extends V> mapIterable)
- Specified by:
withMapIterablein interfaceMutableMapIterable<K,V>- Specified by:
withMapIterablein interfaceMutableOrderedMap<K,V>
-
putAllMapIterable
public void putAllMapIterable(MapIterable<? extends K,? extends V> mapIterable)
- Specified by:
putAllMapIterablein interfaceMutableMapIterable<K,V>
-
withAllKeyValues
public MutableOrderedMap<K,V> withAllKeyValues(Iterable<? extends Pair<? extends K,? extends V>> keyValues)
- Specified by:
withAllKeyValuesin interfaceMutableMapIterable<K,V>- Specified by:
withAllKeyValuesin interfaceMutableOrderedMap<K,V>
-
withAllKeyValueArguments
public MutableOrderedMap<K,V> withAllKeyValueArguments(Pair<? extends K,? extends V>... keyValues)
- Specified by:
withAllKeyValueArgumentsin interfaceMutableMapIterable<K,V>- Specified by:
withAllKeyValueArgumentsin interfaceMutableOrderedMap<K,V>
-
withoutKey
public MutableOrderedMap<K,V> withoutKey(K key)
- Specified by:
withoutKeyin interfaceMutableMapIterable<K,V>- Specified by:
withoutKeyin interfaceMutableOrderedMap<K,V>
-
withoutAllKeys
public MutableOrderedMap<K,V> withoutAllKeys(Iterable<? extends K> keys)
- Specified by:
withoutAllKeysin interfaceMutableMapIterable<K,V>- Specified by:
withoutAllKeysin interfaceMutableOrderedMap<K,V>
-
asUnmodifiable
public MutableOrderedMap<K,V> asUnmodifiable()
- Specified by:
asUnmodifiablein interfaceMutableMapIterable<K,V>- Specified by:
asUnmodifiablein interfaceMutableOrderedMap<K,V>
-
toImmutable
public ImmutableOrderedMap<K,V> toImmutable()
- Specified by:
toImmutablein interfaceMapIterable<K,V>- Specified by:
toImmutablein interfaceMutableMapIterable<K,V>- Specified by:
toImmutablein interfaceOrderedMap<K,V>
-
asSynchronized
public MutableOrderedMap<K,V> asSynchronized()
- Specified by:
asSynchronizedin interfaceMutableMapIterable<K,V>
-
flip
public MutableListMultimap<V,K> flip()
- Specified by:
flipin interfaceMapIterable<K,V>- Specified by:
flipin interfaceMutableMapIterable<K,V>- Specified by:
flipin interfaceMutableOrderedMap<K,V>- Specified by:
flipin interfaceOrderedMap<K,V>
-
collectBoolean
public MutableBooleanList collectBoolean(BooleanFunction<? super V> booleanFunction)
- Specified by:
collectBooleanin interfaceMutableOrderedMap<K,V>- Specified by:
collectBooleanin interfaceOrderedIterable<K>- Specified by:
collectBooleanin interfaceOrderedMap<K,V>- Specified by:
collectBooleanin interfaceReversibleIterable<K>- Specified by:
collectBooleanin interfaceRichIterable<K>
-
collectByte
public MutableByteList collectByte(ByteFunction<? super V> byteFunction)
- Specified by:
collectBytein interfaceMutableOrderedMap<K,V>- Specified by:
collectBytein interfaceOrderedIterable<K>- Specified by:
collectBytein interfaceOrderedMap<K,V>- Specified by:
collectBytein interfaceReversibleIterable<K>- Specified by:
collectBytein interfaceRichIterable<K>
-
collectChar
public MutableCharList collectChar(CharFunction<? super V> charFunction)
- Specified by:
collectCharin interfaceMutableOrderedMap<K,V>- Specified by:
collectCharin interfaceOrderedIterable<K>- Specified by:
collectCharin interfaceOrderedMap<K,V>- Specified by:
collectCharin interfaceReversibleIterable<K>- Specified by:
collectCharin interfaceRichIterable<K>
-
collectDouble
public MutableDoubleList collectDouble(DoubleFunction<? super V> doubleFunction)
- Specified by:
collectDoublein interfaceMutableOrderedMap<K,V>- Specified by:
collectDoublein interfaceOrderedIterable<K>- Specified by:
collectDoublein interfaceOrderedMap<K,V>- Specified by:
collectDoublein interfaceReversibleIterable<K>- Specified by:
collectDoublein interfaceRichIterable<K>
-
collectFloat
public MutableFloatList collectFloat(FloatFunction<? super V> floatFunction)
- Specified by:
collectFloatin interfaceMutableOrderedMap<K,V>- Specified by:
collectFloatin interfaceOrderedIterable<K>- Specified by:
collectFloatin interfaceOrderedMap<K,V>- Specified by:
collectFloatin interfaceReversibleIterable<K>- Specified by:
collectFloatin interfaceRichIterable<K>
-
collectInt
public MutableIntList collectInt(IntFunction<? super V> intFunction)
- Specified by:
collectIntin interfaceMutableOrderedMap<K,V>- Specified by:
collectIntin interfaceOrderedIterable<K>- Specified by:
collectIntin interfaceOrderedMap<K,V>- Specified by:
collectIntin interfaceReversibleIterable<K>- Specified by:
collectIntin interfaceRichIterable<K>
-
collectLong
public MutableLongList collectLong(LongFunction<? super V> longFunction)
- Specified by:
collectLongin interfaceMutableOrderedMap<K,V>- Specified by:
collectLongin interfaceOrderedIterable<K>- Specified by:
collectLongin interfaceOrderedMap<K,V>- Specified by:
collectLongin interfaceReversibleIterable<K>- Specified by:
collectLongin interfaceRichIterable<K>
-
collectShort
public MutableShortList collectShort(ShortFunction<? super V> shortFunction)
- Specified by:
collectShortin interfaceMutableOrderedMap<K,V>- Specified by:
collectShortin interfaceOrderedIterable<K>- Specified by:
collectShortin interfaceOrderedMap<K,V>- Specified by:
collectShortin interfaceReversibleIterable<K>- Specified by:
collectShortin interfaceRichIterable<K>
-
collectValues
public <R> MutableOrderedMap<K,R> collectValues(Function2<? super K,? super V,? extends R> function)
- Specified by:
collectValuesin interfaceMapIterable<K,V>- Specified by:
collectValuesin interfaceMutableMapIterable<K,V>- Specified by:
collectValuesin interfaceMutableOrderedMap<K,V>- Specified by:
collectValuesin interfaceOrderedMap<K,V>
-
tap
public MutableOrderedMap<K,V> tap(Procedure<? super V> procedure)
- Specified by:
tapin interfaceMapIterable<K,V>- Specified by:
tapin interfaceMutableMapIterable<K,V>- Specified by:
tapin interfaceMutableOrderedMap<K,V>- Specified by:
tapin interfaceOrderedIterable<K>- Specified by:
tapin interfaceOrderedMap<K,V>- Specified by:
tapin interfaceReversibleIterable<K>- Specified by:
tapin interfaceRichIterable<K>
-
select
public MutableOrderedMap<K,V> select(Predicate2<? super K,? super V> predicate)
- Specified by:
selectin interfaceMapIterable<K,V>- Specified by:
selectin interfaceMutableMapIterable<K,V>- Specified by:
selectin interfaceMutableOrderedMap<K,V>- Specified by:
selectin interfaceOrderedMap<K,V>
-
reject
public MutableOrderedMap<K,V> reject(Predicate2<? super K,? super V> predicate)
- Specified by:
rejectin interfaceMapIterable<K,V>- Specified by:
rejectin interfaceMutableMapIterable<K,V>- Specified by:
rejectin interfaceMutableOrderedMap<K,V>- Specified by:
rejectin interfaceOrderedMap<K,V>
-
collect
public <R> MutableList<R> collect(Function<? super V,? extends R> function)
- Specified by:
collectin interfaceMutableOrderedMap<K,V>- Specified by:
collectin interfaceOrderedIterable<K>- Specified by:
collectin interfaceOrderedMap<K,V>- Specified by:
collectin interfaceReversibleIterable<K>- Specified by:
collectin interfaceRichIterable<K>
-
collectWith
public <P,VV> MutableList<VV> collectWith(Function2<? super V,? super P,? extends VV> function, P parameter)
- Specified by:
collectWithin interfaceMutableOrderedMap<K,V>- Specified by:
collectWithin interfaceOrderedIterable<K>- Specified by:
collectWithin interfaceOrderedMap<K,V>- Specified by:
collectWithin interfaceReversibleIterable<K>- Specified by:
collectWithin interfaceRichIterable<K>
-
collectIf
public <R> MutableList<R> collectIf(Predicate<? super V> predicate, Function<? super V,? extends R> function)
- Specified by:
collectIfin interfaceMutableOrderedMap<K,V>- Specified by:
collectIfin interfaceOrderedIterable<K>- Specified by:
collectIfin interfaceOrderedMap<K,V>- Specified by:
collectIfin interfaceReversibleIterable<K>- Specified by:
collectIfin interfaceRichIterable<K>
-
flatCollect
public <R> MutableList<R> flatCollect(Function<? super V,? extends Iterable<R>> function)
- Specified by:
flatCollectin interfaceMutableOrderedMap<K,V>- Specified by:
flatCollectin interfaceOrderedIterable<K>- Specified by:
flatCollectin interfaceOrderedMap<K,V>- Specified by:
flatCollectin interfaceReversibleIterable<K>- Specified by:
flatCollectin interfaceRichIterable<K>
-
select
public MutableList<V> select(Predicate<? super V> predicate)
- Specified by:
selectin interfaceMutableMapIterable<K,V>- Specified by:
selectin interfaceMutableOrderedMap<K,V>- Specified by:
selectin interfaceOrderedIterable<K>- Specified by:
selectin interfaceOrderedMap<K,V>- Specified by:
selectin interfaceReversibleIterable<K>- Specified by:
selectin interfaceRichIterable<K>
-
reject
public MutableList<V> reject(Predicate<? super V> predicate)
- Specified by:
rejectin interfaceMutableMapIterable<K,V>- Specified by:
rejectin interfaceMutableOrderedMap<K,V>- Specified by:
rejectin interfaceOrderedIterable<K>- Specified by:
rejectin interfaceOrderedMap<K,V>- Specified by:
rejectin interfaceReversibleIterable<K>- Specified by:
rejectin interfaceRichIterable<K>
-
selectWith
public <P> MutableList<V> selectWith(Predicate2<? super V,? super P> predicate, P parameter)
- Specified by:
selectWithin interfaceMutableMapIterable<K,V>- Specified by:
selectWithin interfaceMutableOrderedMap<K,V>- Specified by:
selectWithin interfaceOrderedIterable<K>- Specified by:
selectWithin interfaceOrderedMap<K,V>- Specified by:
selectWithin interfaceReversibleIterable<K>- Specified by:
selectWithin interfaceRichIterable<K>
-
rejectWith
public <P> MutableList<V> rejectWith(Predicate2<? super V,? super P> predicate, P parameter)
- Specified by:
rejectWithin interfaceMutableMapIterable<K,V>- Specified by:
rejectWithin interfaceMutableOrderedMap<K,V>- Specified by:
rejectWithin interfaceOrderedIterable<K>- Specified by:
rejectWithin interfaceOrderedMap<K,V>- Specified by:
rejectWithin interfaceReversibleIterable<K>- Specified by:
rejectWithin interfaceRichIterable<K>
-
partition
public PartitionMutableList<V> partition(Predicate<? super V> predicate)
- Specified by:
partitionin interfaceMutableMapIterable<K,V>- Specified by:
partitionin interfaceMutableOrderedMap<K,V>- Specified by:
partitionin interfaceOrderedIterable<K>- Specified by:
partitionin interfaceOrderedMap<K,V>- Specified by:
partitionin interfaceReversibleIterable<K>- Specified by:
partitionin interfaceRichIterable<K>
-
partitionWith
public <P> PartitionMutableList<V> partitionWith(Predicate2<? super V,? super P> predicate, P parameter)
- Specified by:
partitionWithin interfaceMutableOrderedMap<K,V>- Specified by:
partitionWithin interfaceOrderedIterable<K>- Specified by:
partitionWithin interfaceOrderedMap<K,V>- Specified by:
partitionWithin interfaceReversibleIterable<K>- Specified by:
partitionWithin interfaceRichIterable<K>
-
selectInstancesOf
public <S> MutableList<S> selectInstancesOf(Class<S> clazz)
- Specified by:
selectInstancesOfin interfaceMutableMapIterable<K,V>- Specified by:
selectInstancesOfin interfaceMutableOrderedMap<K,V>- Specified by:
selectInstancesOfin interfaceOrderedIterable<K>- Specified by:
selectInstancesOfin interfaceOrderedMap<K,V>- Specified by:
selectInstancesOfin interfaceReversibleIterable<K>- Specified by:
selectInstancesOfin interfaceRichIterable<K>
-
zip
public <S> MutableList<Pair<V,S>> zip(Iterable<S> that)
- Specified by:
zipin interfaceMutableMapIterable<K,V>- Specified by:
zipin interfaceMutableOrderedMap<K,V>- Specified by:
zipin interfaceOrderedIterable<K>- Specified by:
zipin interfaceOrderedMap<K,V>- Specified by:
zipin interfaceReversibleIterable<K>- Specified by:
zipin interfaceRichIterable<K>
-
zipWithIndex
public MutableList<Pair<V,Integer>> zipWithIndex()
- Specified by:
zipWithIndexin interfaceMutableMapIterable<K,V>- Specified by:
zipWithIndexin interfaceMutableOrderedMap<K,V>- Specified by:
zipWithIndexin interfaceOrderedIterable<K>- Specified by:
zipWithIndexin interfaceOrderedMap<K,V>- Specified by:
zipWithIndexin interfaceReversibleIterable<K>- Specified by:
zipWithIndexin interfaceRichIterable<K>
-
groupBy
public <VV> MutableListMultimap<VV,V> groupBy(Function<? super V,? extends VV> function)
- Specified by:
groupByin interfaceMutableMapIterable<K,V>- Specified by:
groupByin interfaceMutableOrderedMap<K,V>- Specified by:
groupByin interfaceOrderedIterable<K>- Specified by:
groupByin interfaceOrderedMap<K,V>- Specified by:
groupByin interfaceReversibleIterable<K>- Specified by:
groupByin interfaceRichIterable<K>
-
groupByEach
public <VV> MutableListMultimap<VV,V> groupByEach(Function<? super V,? extends Iterable<VV>> function)
- Specified by:
groupByEachin interfaceMutableMapIterable<K,V>- Specified by:
groupByEachin interfaceMutableOrderedMap<K,V>- Specified by:
groupByEachin interfaceOrderedIterable<K>- Specified by:
groupByEachin interfaceOrderedMap<K,V>- Specified by:
groupByEachin interfaceReversibleIterable<K>- Specified by:
groupByEachin interfaceRichIterable<K>
-
groupByUniqueKey
public <VV> MutableOrderedMap<VV,V> groupByUniqueKey(Function<? super V,? extends VV> function)
- Specified by:
groupByUniqueKeyin interfaceMutableMapIterable<K,V>- Specified by:
groupByUniqueKeyin interfaceMutableOrderedMap<K,V>- Specified by:
groupByUniqueKeyin interfaceOrderedMap<K,V>- Specified by:
groupByUniqueKeyin interfaceRichIterable<K>
-
detectLastIndex
public int detectLastIndex(Predicate<? super V> predicate)
- Specified by:
detectLastIndexin interfaceReversibleIterable<K>
-
corresponds
public <S> boolean corresponds(OrderedIterable<S> other, Predicate2<? super V,? super S> predicate)
- Specified by:
correspondsin interfaceOrderedIterable<K>
-
forEach
public void forEach(int startIndex, int endIndex, Procedure<? super V> procedure)- Specified by:
forEachin interfaceOrderedIterable<K>
-
forEachWithIndex
public void forEachWithIndex(int fromIndex, int toIndex, ObjectIntProcedure<? super V> objectIntProcedure)- Specified by:
forEachWithIndexin interfaceOrderedIterable<K>
-
toStack
public MutableStack<V> toStack()
- Specified by:
toStackin interfaceOrderedIterable<K>
-
detectIndex
public int detectIndex(Predicate<? super V> predicate)
- Specified by:
detectIndexin interfaceOrderedIterable<K>
-
getIfAbsentPut
public V getIfAbsentPut(K key, Function0<? extends V> function)
- Specified by:
getIfAbsentPutin interfaceMutableMapIterable<K,V>
-
getIfAbsentPut
public V getIfAbsentPut(K key, V value)
- Specified by:
getIfAbsentPutin interfaceMutableMapIterable<K,V>
-
getIfAbsentPutWithKey
public V getIfAbsentPutWithKey(K key, Function<? super K,? extends V> function)
- Specified by:
getIfAbsentPutWithKeyin interfaceMutableMapIterable<K,V>
-
getIfAbsentPutWith
public <P> V getIfAbsentPutWith(K key, Function<? super P,? extends V> function, P parameter)
- Specified by:
getIfAbsentPutWithin interfaceMutableMapIterable<K,V>
-
updateValue
public V updateValue(K key, Function0<? extends V> factory, Function<? super V,? extends V> function)
- Specified by:
updateValuein interfaceMutableMapIterable<K,V>
-
updateValueWith
public <P> V updateValueWith(K key, Function0<? extends V> factory, Function2<? super V,? super P,? extends V> function, P parameter)
- Specified by:
updateValueWithin interfaceMutableMapIterable<K,V>
-
keysView
public RichIterable<K> keysView()
- Specified by:
keysViewin interfaceMapIterable<K,V>
-
valuesView
public RichIterable<V> valuesView()
- Specified by:
valuesViewin interfaceMapIterable<K,V>
-
keyValuesView
public RichIterable<Pair<K,V>> keyValuesView()
- Specified by:
keyValuesViewin interfaceMapIterable<K,V>
-
collect
public <K2,V2> MutableOrderedMap<K2,V2> collect(Function2<? super K,? super V,Pair<K2,V2>> function)
- Specified by:
collectin interfaceMapIterable<K,V>- Specified by:
collectin interfaceMutableMapIterable<K,V>- Specified by:
collectin interfaceMutableOrderedMap<K,V>- Specified by:
collectin interfaceOrderedMap<K,V>
-
flipUniqueValues
public MutableOrderedMap<V,K> flipUniqueValues()
- Specified by:
flipUniqueValuesin interfaceMapIterable<K,V>- Specified by:
flipUniqueValuesin interfaceMutableMapIterable<K,V>- Specified by:
flipUniqueValuesin interfaceMutableOrderedMap<K,V>- Specified by:
flipUniqueValuesin interfaceOrderedMap<K,V>
-
detect
public Pair<K,V> detect(Predicate2<? super K,? super V> predicate)
- Specified by:
detectin interfaceMapIterable<K,V>
-
detectOptional
public Optional<Pair<K,V>> detectOptional(Predicate2<? super K,? super V> predicate)
- Specified by:
detectOptionalin interfaceMapIterable<K,V>
-
sumByInt
public <V1> MutableObjectLongMap<V1> sumByInt(Function<? super V,? extends V1> groupBy, IntFunction<? super V> function)
- Specified by:
sumByIntin interfaceMutableMapIterable<K,V>- Specified by:
sumByIntin interfaceRichIterable<K>
-
sumByFloat
public <V1> MutableObjectDoubleMap<V1> sumByFloat(Function<? super V,? extends V1> groupBy, FloatFunction<? super V> function)
- Specified by:
sumByFloatin interfaceMutableMapIterable<K,V>- Specified by:
sumByFloatin interfaceRichIterable<K>
-
sumByLong
public <V1> MutableObjectLongMap<V1> sumByLong(Function<? super V,? extends V1> groupBy, LongFunction<? super V> function)
- Specified by:
sumByLongin interfaceMutableMapIterable<K,V>- Specified by:
sumByLongin interfaceRichIterable<K>
-
sumByDouble
public <V1> MutableObjectDoubleMap<V1> sumByDouble(Function<? super V,? extends V1> groupBy, DoubleFunction<? super V> function)
- Specified by:
sumByDoublein interfaceMutableMapIterable<K,V>- Specified by:
sumByDoublein interfaceRichIterable<K>
-
countBy
public <V1> MutableBag<V1> countBy(Function<? super V,? extends V1> function)
- Specified by:
countByin interfaceMutableMapIterable<K,V>- Specified by:
countByin interfaceRichIterable<K>
-
countByWith
public <V1,P> MutableBag<V1> countByWith(Function2<? super V,? super P,? extends V1> function, P parameter)
- Specified by:
countByWithin interfaceMutableMapIterable<K,V>- Specified by:
countByWithin interfaceRichIterable<K>
-
countByEach
public <V1> MutableBag<V1> countByEach(Function<? super V,? extends Iterable<V1>> function)
- Specified by:
countByEachin interfaceMutableMapIterable<K,V>- Specified by:
countByEachin interfaceRichIterable<K>- Overrides:
countByEachin classAbstractRichIterable<V>- Since:
- 10.0.0
-
-