Class ImmutableOrderedMapAdapter<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.immutable.ImmutableOrderedMapAdapter<K,V>
-
- All Implemented Interfaces:
Serializable,Iterable<V>,Map<K,V>,InternalIterable<V>,ImmutableMapIterable<K,V>,ImmutableOrderedMap<K,V>,MapIterable<K,V>,OrderedMap<K,V>,OrderedIterable<V>,ReversibleIterable<V>,RichIterable<V>
public class ImmutableOrderedMapAdapter<K,V> extends AbstractMapIterable<K,V> implements ImmutableOrderedMap<K,V>, Map<K,V>, Serializable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ImmutableOrderedMapAdapter(Map<K,V> delegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <KK,VVV,VV>
ImmutableOrderedMap<KK,VV>aggregateBy(Function<? super K,? extends KK> keyFunction, Function<? super V,? extends VVV> valueFunction, Function0<? extends VV> zeroValueFactory, Function2<? super VV,? super VVV,? extends VV> nonMutatingAggregator)<KK,VV>
ImmutableOrderedMap<KK,VV>aggregateBy(Function<? super V,? extends KK> groupBy, Function0<? extends VV> zeroValueFactory, Function2<? super VV,? super V,? extends VV> nonMutatingAggregator)<KK,VV>
ImmutableOrderedMap<KK,VV>aggregateInPlaceBy(Function<? super V,? extends KK> groupBy, Function0<? extends VV> zeroValueFactory, Procedure2<? super VV,? super V> mutatingAggregator)Map<K,V>castToMap()voidclear()<VV> ImmutableList<VV>collect(Function<? super V,? extends VV> function)<K2,V2>
ImmutableOrderedMap<K2,V2>collect(Function2<? super K,? super V,Pair<K2,V2>> function)ImmutableBooleanListcollectBoolean(BooleanFunction<? super V> booleanFunction)ImmutableByteListcollectByte(ByteFunction<? super V> byteFunction)ImmutableCharListcollectChar(CharFunction<? super V> charFunction)ImmutableDoubleListcollectDouble(DoubleFunction<? super V> doubleFunction)ImmutableFloatListcollectFloat(FloatFunction<? super V> floatFunction)<VV> ImmutableList<VV>collectIf(Predicate<? super V> predicate, Function<? super V,? extends VV> function)ImmutableIntListcollectInt(IntFunction<? super V> intFunction)<R> ImmutableOrderedMap<R,V>collectKeysUnique(Function2<? super K,? super V,? extends R> function)ImmutableLongListcollectLong(LongFunction<? super V> longFunction)ImmutableShortListcollectShort(ShortFunction<? super V> shortFunction)<R> ImmutableOrderedMap<K,R>collectValues(Function2<? super K,? super V,? extends R> function)<P,VV>
ImmutableList<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> ImmutableBag<V1>countByEach(Function<? super V,? extends Iterable<V1>> function)Vdetect(Predicate<? super V> predicate)Pair<K,V>detect(Predicate2<? super K,? super V> predicate)intdetectIndex(Predicate<? super V> predicate)intdetectLastIndex(Predicate<? super V> predicate)Optional<V>detectOptional(Predicate<? super V> predicate)Optional<Pair<K,V>>detectOptional(Predicate2<? super K,? super V> predicate)ImmutableList<V>distinct()ImmutableOrderedMap<K,V>drop(int count)ImmutableOrderedMap<K,V>dropWhile(Predicate<? super V> predicate)Set<Map.Entry<K,V>>entrySet()booleanequals(Object obj)<VV> ImmutableList<VV>flatCollect(Function<? super V,? extends Iterable<VV>> function)ImmutableListMultimap<V,K>flip()ImmutableOrderedMap<V,K>flipUniqueValues()voidforEach(int startIndex, int endIndex, Procedure<? super V> procedure)voidforEach(BiConsumer<? super K,? super V> action)voidforEachKey(Procedure<? super K> procedure)voidforEachKeyValue(Procedure2<? super K,? super V> procedure)voidforEachValue(Procedure<? super V> procedure)<P> voidforEachWith(Procedure2<? super V,? super P> procedure, P parameter)voidforEachWithIndex(int fromIndex, int toIndex, ObjectIntProcedure<? super V> objectIntProcedure)voidforEachWithIndex(ObjectIntProcedure<? super V> objectIntProcedure)Vget(Object key)VgetIfAbsent(K key, Function0<? extends V> function)VgetIfAbsentValue(K key, V value)<P> VgetIfAbsentWith(K key, Function<? super P,? extends V> function, P parameter)<VV> ImmutableListMultimap<VV,V>groupBy(Function<? super V,? extends VV> function)<VV> ImmutableListMultimap<VV,V>groupByEach(Function<? super V,? extends Iterable<VV>> function)<VV> ImmutableOrderedMap<VV,V>groupByUniqueKey(Function<? super V,? extends VV> function)inthashCode()<A> AifPresentApply(K key, Function<? super V,? extends A> function)Iterator<V>iterator()Set<K>keySet()RichIterable<K>keysView()RichIterable<Pair<K,V>>keyValuesView()ImmutableOrderedMap<K,V>newWithAllKeyValueArguments(Pair<? extends K,? extends V>... keyValuePairs)ImmutableOrderedMap<K,V>newWithAllKeyValues(Iterable<? extends Pair<? extends K,? extends V>> keyValues)ImmutableOrderedMap<K,V>newWithKeyValue(K key, V value)ImmutableOrderedMap<K,V>newWithMap(Map<? extends K,? extends V> map)ImmutableOrderedMap<K,V>newWithMapIterable(MapIterable<? extends K,? extends V> mapIterable)ImmutableOrderedMap<K,V>newWithoutAllKeys(Iterable<? extends K> keys)ImmutableOrderedMap<K,V>newWithoutKey(K key)PartitionImmutableList<V>partition(Predicate<? super V> predicate)PartitionImmutableList<V>partitionWhile(Predicate<? super V> predicate)<P> PartitionImmutableList<V>partitionWith(Predicate2<? super V,? super P> predicate, P parameter)Vput(K key, V value)voidputAll(Map<? extends K,? extends V> map)<KK> ImmutableOrderedMap<KK,V>reduceBy(Function<? super V,? extends KK> groupBy, Function2<? super V,? super V,? extends V> reduceFunction)ImmutableList<V>reject(Predicate<? super V> predicate)ImmutableOrderedMap<K,V>reject(Predicate2<? super K,? super V> predicate)<P> ImmutableList<V>rejectWith(Predicate2<? super V,? super P> predicate, P parameter)Vremove(Object key)ImmutableList<V>select(Predicate<? super V> predicate)ImmutableOrderedMap<K,V>select(Predicate2<? super K,? super V> predicate)<S> ImmutableList<S>selectInstancesOf(Class<S> clazz)<P> ImmutableList<V>selectWith(Predicate2<? super V,? super P> predicate, P parameter)intsize()<VV> ImmutableObjectDoubleMap<VV>sumByDouble(Function<? super V,? extends VV> groupBy, DoubleFunction<? super V> function)<VV> ImmutableObjectDoubleMap<VV>sumByFloat(Function<? super V,? extends VV> groupBy, FloatFunction<? super V> function)<VV> ImmutableObjectLongMap<VV>sumByInt(Function<? super V,? extends VV> groupBy, IntFunction<? super V> function)<VV> ImmutableObjectLongMap<VV>sumByLong(Function<? super V,? extends VV> groupBy, LongFunction<? super V> function)ImmutableOrderedMap<K,V>take(int count)ImmutableOrderedMap<K,V>takeWhile(Predicate<? super V> predicate)ImmutableOrderedMap<K,V>tap(Procedure<? super V> procedure)ImmutableOrderedMap<K,V>toImmutable()ImmutableOrderedMap<K,V>toReversed()StringtoString()Returns a string with the elements of the iterable separated by commas with spaces and enclosed in square brackets.Collection<V>values()RichIterable<V>valuesView()<S> ImmutableList<Pair<V,S>>zip(Iterable<S> that)ImmutableList<Pair<V,Integer>>zipWithIndex()-
Methods inherited from class org.eclipse.collections.impl.map.AbstractMapIterable
allSatisfy, allSatisfyWith, anySatisfy, anySatisfyWith, asLazy, chunk, contains, detectIfNone, detectWith, detectWithIfNone, detectWithOptional, each, getFirst, getLast, getOnly, getOrDefault, 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, isEmpty, 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.map.ImmutableMapIterable
countBy, countByWith
-
Methods inherited from interface org.eclipse.collections.api.map.ImmutableOrderedMap
flatCollectWith
-
Methods inherited from interface org.eclipse.collections.api.InternalIterable
forEach
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, getOrDefault, isEmpty, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Methods inherited from interface org.eclipse.collections.api.map.MapIterable
getOrDefault, injectIntoKeyValue, parallelStream, spliterator, stream
-
Methods inherited from interface org.eclipse.collections.api.ordered.OrderedIterable
collectWithIndex, getFirst, getFirstOptional, getLast, getLastOptional, indexOf, max, min, rejectWithIndex, selectWithIndex, toStack, 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, detectIfNone, 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, isEmpty, makeString, makeString, makeString, makeString, max, maxBy, maxByOptional, maxOptional, maxOptional, min, minBy, minByOptional, minOptional, minOptional, noneSatisfy, noneSatisfyWith, notEmpty, reduce, reduceBy, 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
-
hashCode
public int hashCode()
-
equals
public boolean equals(Object obj)
-
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()
-
forEach
public void forEach(BiConsumer<? super K,? super V> action)
-
size
public int size()
-
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>
-
forEachValue
public void forEachValue(Procedure<? super V> procedure)
- Specified by:
forEachValuein interfaceMapIterable<K,V>- Overrides:
forEachValuein classAbstractMapIterable<K,V>
-
forEachKey
public void forEachKey(Procedure<? super K> procedure)
- Specified by:
forEachKeyin interfaceMapIterable<K,V>- Overrides:
forEachKeyin classAbstractMapIterable<K,V>
-
forEachKeyValue
public void forEachKeyValue(Procedure2<? super K,? super V> procedure)
- Specified by:
forEachKeyValuein interfaceMapIterable<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>
-
forEachWithIndex
public void forEachWithIndex(ObjectIntProcedure<? super V> objectIntProcedure)
- Specified by:
forEachWithIndexin interfaceInternalIterable<K>- Specified by:
forEachWithIndexin interfaceOrderedIterable<K>- Overrides:
forEachWithIndexin classAbstractMapIterable<K,V>
-
forEachWith
public <P> void forEachWith(Procedure2<? super V,? super P> procedure, P parameter)
- Specified by:
forEachWithin interfaceInternalIterable<K>- Overrides:
forEachWithin classAbstractMapIterable<K,V>
-
ifPresentApply
public <A> A ifPresentApply(K key, Function<? super V,? extends A> function)
- Specified by:
ifPresentApplyin interfaceMapIterable<K,V>- Overrides:
ifPresentApplyin classAbstractMapIterable<K,V>
-
getIfAbsent
public V getIfAbsent(K key, Function0<? extends V> function)
- Specified by:
getIfAbsentin interfaceMapIterable<K,V>- Overrides:
getIfAbsentin classAbstractMapIterable<K,V>
-
getIfAbsentValue
public V getIfAbsentValue(K key, V value)
- Specified by:
getIfAbsentValuein interfaceMapIterable<K,V>- Overrides:
getIfAbsentValuein classAbstractMapIterable<K,V>
-
getIfAbsentWith
public <P> V getIfAbsentWith(K key, Function<? super P,? extends V> function, P parameter)
- Specified by:
getIfAbsentWithin interfaceMapIterable<K,V>- Overrides:
getIfAbsentWithin classAbstractMapIterable<K,V>
-
castToMap
public Map<K,V> castToMap()
- Specified by:
castToMapin interfaceImmutableMapIterable<K,V>
-
flip
public ImmutableListMultimap<V,K> flip()
- Specified by:
flipin interfaceImmutableMapIterable<K,V>- Specified by:
flipin interfaceImmutableOrderedMap<K,V>- Specified by:
flipin interfaceMapIterable<K,V>- Specified by:
flipin interfaceOrderedMap<K,V>
-
newWithKeyValue
public ImmutableOrderedMap<K,V> newWithKeyValue(K key, V value)
- Specified by:
newWithKeyValuein interfaceImmutableMapIterable<K,V>- Specified by:
newWithKeyValuein interfaceImmutableOrderedMap<K,V>
-
newWithAllKeyValues
public ImmutableOrderedMap<K,V> newWithAllKeyValues(Iterable<? extends Pair<? extends K,? extends V>> keyValues)
- Specified by:
newWithAllKeyValuesin interfaceImmutableMapIterable<K,V>- Specified by:
newWithAllKeyValuesin interfaceImmutableOrderedMap<K,V>
-
newWithMap
public ImmutableOrderedMap<K,V> newWithMap(Map<? extends K,? extends V> map)
- Specified by:
newWithMapin interfaceImmutableMapIterable<K,V>- Specified by:
newWithMapin interfaceImmutableOrderedMap<K,V>
-
newWithMapIterable
public ImmutableOrderedMap<K,V> newWithMapIterable(MapIterable<? extends K,? extends V> mapIterable)
- Specified by:
newWithMapIterablein interfaceImmutableMapIterable<K,V>- Specified by:
newWithMapIterablein interfaceImmutableOrderedMap<K,V>
-
newWithAllKeyValueArguments
public ImmutableOrderedMap<K,V> newWithAllKeyValueArguments(Pair<? extends K,? extends V>... keyValuePairs)
- Specified by:
newWithAllKeyValueArgumentsin interfaceImmutableMapIterable<K,V>- Specified by:
newWithAllKeyValueArgumentsin interfaceImmutableOrderedMap<K,V>
-
newWithoutKey
public ImmutableOrderedMap<K,V> newWithoutKey(K key)
- Specified by:
newWithoutKeyin interfaceImmutableMapIterable<K,V>- Specified by:
newWithoutKeyin interfaceImmutableOrderedMap<K,V>
-
newWithoutAllKeys
public ImmutableOrderedMap<K,V> newWithoutAllKeys(Iterable<? extends K> keys)
- Specified by:
newWithoutAllKeysin interfaceImmutableMapIterable<K,V>- Specified by:
newWithoutAllKeysin interfaceImmutableOrderedMap<K,V>
-
flipUniqueValues
public ImmutableOrderedMap<V,K> flipUniqueValues()
- Specified by:
flipUniqueValuesin interfaceImmutableMapIterable<K,V>- Specified by:
flipUniqueValuesin interfaceImmutableOrderedMap<K,V>- Specified by:
flipUniqueValuesin interfaceMapIterable<K,V>- Specified by:
flipUniqueValuesin interfaceOrderedMap<K,V>
-
collect
public <K2,V2> ImmutableOrderedMap<K2,V2> collect(Function2<? super K,? super V,Pair<K2,V2>> function)
- Specified by:
collectin interfaceImmutableMapIterable<K,V>- Specified by:
collectin interfaceImmutableOrderedMap<K,V>- Specified by:
collectin interfaceMapIterable<K,V>- Specified by:
collectin interfaceOrderedMap<K,V>
-
collectValues
public <R> ImmutableOrderedMap<K,R> collectValues(Function2<? super K,? super V,? extends R> function)
- Specified by:
collectValuesin interfaceImmutableMapIterable<K,V>- Specified by:
collectValuesin interfaceImmutableOrderedMap<K,V>- Specified by:
collectValuesin interfaceMapIterable<K,V>- Specified by:
collectValuesin interfaceOrderedMap<K,V>
-
collectKeysUnique
public <R> ImmutableOrderedMap<R,V> collectKeysUnique(Function2<? super K,? super V,? extends R> function)
- Specified by:
collectKeysUniquein interfaceImmutableMapIterable<K,V>- Specified by:
collectKeysUniquein interfaceImmutableOrderedMap<K,V>- Specified by:
collectKeysUniquein interfaceMapIterable<K,V>
-
select
public ImmutableOrderedMap<K,V> select(Predicate2<? super K,? super V> predicate)
- Specified by:
selectin interfaceImmutableMapIterable<K,V>- Specified by:
selectin interfaceImmutableOrderedMap<K,V>- Specified by:
selectin interfaceMapIterable<K,V>- Specified by:
selectin interfaceOrderedMap<K,V>
-
reject
public ImmutableOrderedMap<K,V> reject(Predicate2<? super K,? super V> predicate)
- Specified by:
rejectin interfaceImmutableMapIterable<K,V>- Specified by:
rejectin interfaceImmutableOrderedMap<K,V>- Specified by:
rejectin interfaceMapIterable<K,V>- Specified by:
rejectin interfaceOrderedMap<K,V>
-
detect
public V detect(Predicate<? super V> predicate)
- Specified by:
detectin interfaceRichIterable<K>- Overrides:
detectin classAbstractMapIterable<K,V>
-
detectOptional
public Optional<V> detectOptional(Predicate<? super V> predicate)
- Specified by:
detectOptionalin interfaceRichIterable<K>- Overrides:
detectOptionalin classAbstractMapIterable<K,V>
-
collect
public <VV> ImmutableList<VV> collect(Function<? super V,? extends VV> function)
- Specified by:
collectin interfaceImmutableOrderedMap<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> ImmutableList<VV> collectWith(Function2<? super V,? super P,? extends VV> function, P parameter)
- Specified by:
collectWithin interfaceImmutableOrderedMap<K,V>- Specified by:
collectWithin interfaceOrderedIterable<K>- Specified by:
collectWithin interfaceOrderedMap<K,V>- Specified by:
collectWithin interfaceReversibleIterable<K>- Specified by:
collectWithin interfaceRichIterable<K>
-
collectBoolean
public ImmutableBooleanList collectBoolean(BooleanFunction<? super V> booleanFunction)
- Specified by:
collectBooleanin interfaceImmutableOrderedMap<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 ImmutableByteList collectByte(ByteFunction<? super V> byteFunction)
- Specified by:
collectBytein interfaceImmutableOrderedMap<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 ImmutableCharList collectChar(CharFunction<? super V> charFunction)
- Specified by:
collectCharin interfaceImmutableOrderedMap<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 ImmutableDoubleList collectDouble(DoubleFunction<? super V> doubleFunction)
- Specified by:
collectDoublein interfaceImmutableOrderedMap<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 ImmutableFloatList collectFloat(FloatFunction<? super V> floatFunction)
- Specified by:
collectFloatin interfaceImmutableOrderedMap<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 ImmutableIntList collectInt(IntFunction<? super V> intFunction)
- Specified by:
collectIntin interfaceImmutableOrderedMap<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 ImmutableLongList collectLong(LongFunction<? super V> longFunction)
- Specified by:
collectLongin interfaceImmutableOrderedMap<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 ImmutableShortList collectShort(ShortFunction<? super V> shortFunction)
- Specified by:
collectShortin interfaceImmutableOrderedMap<K,V>- Specified by:
collectShortin interfaceOrderedIterable<K>- Specified by:
collectShortin interfaceOrderedMap<K,V>- Specified by:
collectShortin interfaceReversibleIterable<K>- Specified by:
collectShortin interfaceRichIterable<K>
-
collectIf
public <VV> ImmutableList<VV> collectIf(Predicate<? super V> predicate, Function<? super V,? extends VV> function)
- Specified by:
collectIfin interfaceImmutableOrderedMap<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 <VV> ImmutableList<VV> flatCollect(Function<? super V,? extends Iterable<VV>> function)
- Specified by:
flatCollectin interfaceImmutableOrderedMap<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 ImmutableList<V> select(Predicate<? super V> predicate)
- Specified by:
selectin interfaceImmutableMapIterable<K,V>- Specified by:
selectin interfaceImmutableOrderedMap<K,V>- Specified by:
selectin interfaceOrderedIterable<K>- Specified by:
selectin interfaceOrderedMap<K,V>- Specified by:
selectin interfaceReversibleIterable<K>- Specified by:
selectin interfaceRichIterable<K>
-
selectWith
public <P> ImmutableList<V> selectWith(Predicate2<? super V,? super P> predicate, P parameter)
- Specified by:
selectWithin interfaceImmutableMapIterable<K,V>- Specified by:
selectWithin interfaceImmutableOrderedMap<K,V>- Specified by:
selectWithin interfaceOrderedIterable<K>- Specified by:
selectWithin interfaceOrderedMap<K,V>- Specified by:
selectWithin interfaceReversibleIterable<K>- Specified by:
selectWithin interfaceRichIterable<K>
-
reject
public ImmutableList<V> reject(Predicate<? super V> predicate)
- Specified by:
rejectin interfaceImmutableMapIterable<K,V>- Specified by:
rejectin interfaceImmutableOrderedMap<K,V>- Specified by:
rejectin interfaceOrderedIterable<K>- Specified by:
rejectin interfaceOrderedMap<K,V>- Specified by:
rejectin interfaceReversibleIterable<K>- Specified by:
rejectin interfaceRichIterable<K>
-
rejectWith
public <P> ImmutableList<V> rejectWith(Predicate2<? super V,? super P> predicate, P parameter)
- Specified by:
rejectWithin interfaceImmutableMapIterable<K,V>- Specified by:
rejectWithin interfaceImmutableOrderedMap<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 PartitionImmutableList<V> partition(Predicate<? super V> predicate)
- Specified by:
partitionin interfaceImmutableMapIterable<K,V>- Specified by:
partitionin interfaceImmutableOrderedMap<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> PartitionImmutableList<V> partitionWith(Predicate2<? super V,? super P> predicate, P parameter)
- Specified by:
partitionWithin interfaceImmutableOrderedMap<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> ImmutableList<S> selectInstancesOf(Class<S> clazz)
- Specified by:
selectInstancesOfin interfaceImmutableMapIterable<K,V>- Specified by:
selectInstancesOfin interfaceImmutableOrderedMap<K,V>- Specified by:
selectInstancesOfin interfaceOrderedIterable<K>- Specified by:
selectInstancesOfin interfaceOrderedMap<K,V>- Specified by:
selectInstancesOfin interfaceReversibleIterable<K>- Specified by:
selectInstancesOfin interfaceRichIterable<K>
-
tap
public ImmutableOrderedMap<K,V> tap(Procedure<? super V> procedure)
- Specified by:
tapin interfaceImmutableMapIterable<K,V>- Specified by:
tapin interfaceImmutableOrderedMap<K,V>- Specified by:
tapin interfaceMapIterable<K,V>- Specified by:
tapin interfaceOrderedIterable<K>- Specified by:
tapin interfaceOrderedMap<K,V>- Specified by:
tapin interfaceReversibleIterable<K>- Specified by:
tapin interfaceRichIterable<K>
-
zip
public <S> ImmutableList<Pair<V,S>> zip(Iterable<S> that)
- Specified by:
zipin interfaceImmutableMapIterable<K,V>- Specified by:
zipin interfaceImmutableOrderedMap<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 ImmutableList<Pair<V,Integer>> zipWithIndex()
- Specified by:
zipWithIndexin interfaceImmutableMapIterable<K,V>- Specified by:
zipWithIndexin interfaceImmutableOrderedMap<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> ImmutableListMultimap<VV,V> groupBy(Function<? super V,? extends VV> function)
- Specified by:
groupByin interfaceImmutableMapIterable<K,V>- Specified by:
groupByin interfaceImmutableOrderedMap<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> ImmutableListMultimap<VV,V> groupByEach(Function<? super V,? extends Iterable<VV>> function)
- Specified by:
groupByEachin interfaceImmutableMapIterable<K,V>- Specified by:
groupByEachin interfaceImmutableOrderedMap<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> ImmutableOrderedMap<VV,V> groupByUniqueKey(Function<? super V,? extends VV> function)
- Specified by:
groupByUniqueKeyin interfaceImmutableMapIterable<K,V>- Specified by:
groupByUniqueKeyin interfaceImmutableOrderedMap<K,V>- Specified by:
groupByUniqueKeyin interfaceOrderedMap<K,V>- Specified by:
groupByUniqueKeyin interfaceRichIterable<K>
-
aggregateInPlaceBy
public <KK,VV> ImmutableOrderedMap<KK,VV> aggregateInPlaceBy(Function<? super V,? extends KK> groupBy, Function0<? extends VV> zeroValueFactory, Procedure2<? super VV,? super V> mutatingAggregator)
- Specified by:
aggregateInPlaceByin interfaceImmutableMapIterable<K,V>- Specified by:
aggregateInPlaceByin interfaceImmutableOrderedMap<K,V>- Specified by:
aggregateInPlaceByin interfaceRichIterable<K>
-
aggregateBy
public <KK,VV> ImmutableOrderedMap<KK,VV> aggregateBy(Function<? super V,? extends KK> groupBy, Function0<? extends VV> zeroValueFactory, Function2<? super VV,? super V,? extends VV> nonMutatingAggregator)
- Specified by:
aggregateByin interfaceImmutableMapIterable<K,V>- Specified by:
aggregateByin interfaceImmutableOrderedMap<K,V>- Specified by:
aggregateByin interfaceRichIterable<K>
-
aggregateBy
public <KK,VVV,VV> ImmutableOrderedMap<KK,VV> aggregateBy(Function<? super K,? extends KK> keyFunction, Function<? super V,? extends VVV> valueFunction, Function0<? extends VV> zeroValueFactory, Function2<? super VV,? super VVV,? extends VV> nonMutatingAggregator)
- Specified by:
aggregateByin interfaceImmutableMapIterable<K,V>- Specified by:
aggregateByin interfaceImmutableOrderedMap<K,V>- Specified by:
aggregateByin interfaceMapIterable<K,V>
-
reduceBy
public <KK> ImmutableOrderedMap<KK,V> reduceBy(Function<? super V,? extends KK> groupBy, Function2<? super V,? super V,? extends V> reduceFunction)
- Specified by:
reduceByin interfaceImmutableMapIterable<K,V>- Specified by:
reduceByin interfaceImmutableOrderedMap<K,V>- Specified by:
reduceByin interfaceRichIterable<K>
-
sumByInt
public <VV> ImmutableObjectLongMap<VV> sumByInt(Function<? super V,? extends VV> groupBy, IntFunction<? super V> function)
- Specified by:
sumByIntin interfaceImmutableOrderedMap<K,V>- Specified by:
sumByIntin interfaceRichIterable<K>
-
sumByFloat
public <VV> ImmutableObjectDoubleMap<VV> sumByFloat(Function<? super V,? extends VV> groupBy, FloatFunction<? super V> function)
- Specified by:
sumByFloatin interfaceImmutableOrderedMap<K,V>- Specified by:
sumByFloatin interfaceRichIterable<K>
-
sumByLong
public <VV> ImmutableObjectLongMap<VV> sumByLong(Function<? super V,? extends VV> groupBy, LongFunction<? super V> function)
- Specified by:
sumByLongin interfaceImmutableOrderedMap<K,V>- Specified by:
sumByLongin interfaceRichIterable<K>
-
sumByDouble
public <VV> ImmutableObjectDoubleMap<VV> sumByDouble(Function<? super V,? extends VV> groupBy, DoubleFunction<? super V> function)
- Specified by:
sumByDoublein interfaceImmutableOrderedMap<K,V>- Specified by:
sumByDoublein interfaceRichIterable<K>
-
toReversed
public ImmutableOrderedMap<K,V> toReversed()
- Specified by:
toReversedin interfaceImmutableOrderedMap<K,V>- Specified by:
toReversedin interfaceOrderedMap<K,V>- Specified by:
toReversedin interfaceReversibleIterable<K>
-
take
public ImmutableOrderedMap<K,V> take(int count)
- Specified by:
takein interfaceImmutableOrderedMap<K,V>- Specified by:
takein interfaceOrderedMap<K,V>- Specified by:
takein interfaceReversibleIterable<K>
-
takeWhile
public ImmutableOrderedMap<K,V> takeWhile(Predicate<? super V> predicate)
- Specified by:
takeWhilein interfaceImmutableOrderedMap<K,V>- Specified by:
takeWhilein interfaceOrderedIterable<K>- Specified by:
takeWhilein interfaceOrderedMap<K,V>- Specified by:
takeWhilein interfaceReversibleIterable<K>
-
drop
public ImmutableOrderedMap<K,V> drop(int count)
- Specified by:
dropin interfaceImmutableOrderedMap<K,V>- Specified by:
dropin interfaceOrderedMap<K,V>- Specified by:
dropin interfaceReversibleIterable<K>
-
dropWhile
public ImmutableOrderedMap<K,V> dropWhile(Predicate<? super V> predicate)
- Specified by:
dropWhilein interfaceImmutableOrderedMap<K,V>- Specified by:
dropWhilein interfaceOrderedIterable<K>- Specified by:
dropWhilein interfaceOrderedMap<K,V>- Specified by:
dropWhilein interfaceReversibleIterable<K>
-
partitionWhile
public PartitionImmutableList<V> partitionWhile(Predicate<? super V> predicate)
- Specified by:
partitionWhilein interfaceImmutableOrderedMap<K,V>- Specified by:
partitionWhilein interfaceOrderedIterable<K>- Specified by:
partitionWhilein interfaceOrderedMap<K,V>- Specified by:
partitionWhilein interfaceReversibleIterable<K>
-
distinct
public ImmutableList<V> distinct()
- Specified by:
distinctin interfaceImmutableOrderedMap<K,V>- Specified by:
distinctin interfaceOrderedIterable<K>- Specified by:
distinctin interfaceOrderedMap<K,V>- Specified by:
distinctin interfaceReversibleIterable<K>
-
toImmutable
public ImmutableOrderedMap<K,V> toImmutable()
- Specified by:
toImmutablein interfaceMapIterable<K,V>- Specified by:
toImmutablein 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>
-
detectIndex
public int detectIndex(Predicate<? super V> predicate)
- Specified by:
detectIndexin interfaceOrderedIterable<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>
-
countByEach
public <V1> ImmutableBag<V1> countByEach(Function<? super V,? extends Iterable<V1>> function)
- Specified by:
countByEachin interfaceImmutableMapIterable<K,V>- Specified by:
countByEachin interfaceRichIterable<K>- Overrides:
countByEachin classAbstractRichIterable<V>
-
-