Class UnmodifiableMutableOrderedMap<K,V>
- java.lang.Object
-
- org.eclipse.collections.impl.map.ordered.mutable.UnmodifiableMutableOrderedMap<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 UnmodifiableMutableOrderedMap<K,V> extends Object implements MutableOrderedMap<K,V>, Serializable
An unmodifiable view of a map.- See Also:
MutableMap.asUnmodifiable(), Serialized Form
-
-
Constructor Summary
Constructors Constructor Description UnmodifiableMutableOrderedMap(MutableOrderedMap<K,V> delegate)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description <K1,V1,V2>
MutableMapIterable<K1,V2>aggregateBy(Function<? super K,? extends K1> keyFunction, Function<? super V,? extends V1> valueFunction, Function0<? extends V2> zeroValueFactory, Function2<? super V2,? super V1,? extends V2> nonMutatingAggregator)<KK,VV>
MutableMapIterable<KK,VV>aggregateBy(Function<? super V,? extends KK> groupBy, Function0<? extends VV> zeroValueFactory, Function2<? super VV,? super V,? extends VV> nonMutatingAggregator)<KK,VV>
MutableMap<KK,VV>aggregateInPlaceBy(Function<? super V,? extends KK> groupBy, Function0<? extends VV> zeroValueFactory, Procedure2<? super VV,? super V> mutatingAggregator)booleanallSatisfy(Predicate<? super V> predicate)<P> booleanallSatisfyWith(Predicate2<? super V,? super P> predicate, P parameter)booleananySatisfy(Predicate<? super V> predicate)<P> booleananySatisfyWith(Predicate2<? super V,? super P> predicate, P parameter)voidappendString(Appendable appendable)voidappendString(Appendable appendable, String separator)voidappendString(Appendable appendable, String start, String separator, String end)LazyIterable<V>asLazy()MutableMapIterable<K,V>asSynchronized()MutableOrderedMap<K,V>asUnmodifiable()RichIterable<RichIterable<V>>chunk(int size)voidclear()<VV> MutableList<VV>collect(Function<? super V,? extends VV> function)<VV,R extends Collection<VV>>
Rcollect(Function<? super V,? extends VV> function, R target)<K2,V2>
MutableOrderedMap<K2,V2>collect(Function2<? super K,? super V,Pair<K2,V2>> function)MutableBooleanListcollectBoolean(BooleanFunction<? super V> booleanFunction)<R extends MutableBooleanCollection>
RcollectBoolean(BooleanFunction<? super V> booleanFunction, R target)MutableByteListcollectByte(ByteFunction<? super V> byteFunction)<R extends MutableByteCollection>
RcollectByte(ByteFunction<? super V> byteFunction, R target)MutableCharListcollectChar(CharFunction<? super V> charFunction)<R extends MutableCharCollection>
RcollectChar(CharFunction<? super V> charFunction, R target)MutableDoubleListcollectDouble(DoubleFunction<? super V> doubleFunction)<R extends MutableDoubleCollection>
RcollectDouble(DoubleFunction<? super V> doubleFunction, R target)MutableFloatListcollectFloat(FloatFunction<? super V> floatFunction)<R extends MutableFloatCollection>
RcollectFloat(FloatFunction<? super V> floatFunction, R target)<VV> MutableList<VV>collectIf(Predicate<? super V> predicate, Function<? super V,? extends VV> function)<VV,R extends Collection<VV>>
RcollectIf(Predicate<? super V> predicate, Function<? super V,? extends VV> function, R target)MutableIntListcollectInt(IntFunction<? super V> intFunction)<R extends MutableIntCollection>
RcollectInt(IntFunction<? super V> intFunction, R target)MutableLongListcollectLong(LongFunction<? super V> longFunction)<R extends MutableLongCollection>
RcollectLong(LongFunction<? super V> longFunction, R target)MutableShortListcollectShort(ShortFunction<? super V> shortFunction)<R extends MutableShortCollection>
RcollectShort(ShortFunction<? super V> shortFunction, R target)<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)<P,VV,R extends Collection<VV>>
RcollectWith(Function2<? super V,? super P,? extends VV> function, P parameter, R targetCollection)<V1> ReversibleIterable<V1>collectWithIndex(ObjectIntToObjectFunction<? super V,? extends V1> function)<VV,R extends Collection<VV>>
RcollectWithIndex(ObjectIntToObjectFunction<? super V,? extends VV> function, R target)booleancontains(Object object)booleancontainsAll(Collection<?> source)booleancontainsAllArguments(Object... elements)booleancontainsAllIterable(Iterable<?> source)booleancontainsKey(Object key)booleancontainsValue(Object value)<S> booleancorresponds(OrderedIterable<S> other, Predicate2<? super V,? super S> predicate)intcount(Predicate<? super V> predicate)<VV> MutableBag<VV>countBy(Function<? super V,? extends VV> function)<VV,R extends MutableBagIterable<VV>>
RcountBy(Function<? super V,? extends VV> function, R target)<VV,P>
MutableBag<VV>countByWith(Function2<? super V,? super P,? extends VV> function, P parameter)<VV,P,R extends MutableBagIterable<VV>>
RcountByWith(Function2<? super V,? super P,? extends VV> function, P parameter, R target)<P> intcountWith(Predicate2<? super V,? super P> predicate, P parameter)Vdetect(Predicate<? super V> predicate)Pair<K,V>detect(Predicate2<? super K,? super V> predicate)VdetectIfNone(Predicate<? super V> predicate, Function0<? extends V> function)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)<P> VdetectWith(Predicate2<? super V,? super P> predicate, P parameter)<P> VdetectWithIfNone(Predicate2<? super V,? super P> predicate, P parameter, Function0<? extends V> function)<P> Optional<V>detectWithOptional(Predicate2<? super V,? super P> predicate, P parameter)MutableList<V>distinct()MutableOrderedMap<K,V>drop(int count)MutableOrderedMap<K,V>dropWhile(Predicate<? super V> predicate)voideach(Procedure<? super V> procedure)Set<Map.Entry<K,V>>entrySet()booleanequals(Object o)<VV> MutableList<VV>flatCollect(Function<? super V,? extends Iterable<VV>> function)<VV,R extends Collection<VV>>
RflatCollect(Function<? super V,? extends Iterable<VV>> function, R target)<R extends MutableBooleanCollection>
RflatCollectBoolean(Function<? super V,? extends BooleanIterable> function, R target)<R extends MutableByteCollection>
RflatCollectByte(Function<? super V,? extends ByteIterable> function, R target)<R extends MutableCharCollection>
RflatCollectChar(Function<? super V,? extends CharIterable> function, R target)<R extends MutableDoubleCollection>
RflatCollectDouble(Function<? super V,? extends DoubleIterable> function, R target)<R extends MutableFloatCollection>
RflatCollectFloat(Function<? super V,? extends FloatIterable> function, R target)<R extends MutableIntCollection>
RflatCollectInt(Function<? super V,? extends IntIterable> function, R target)<R extends MutableLongCollection>
RflatCollectLong(Function<? super V,? extends LongIterable> function, R target)<R extends MutableShortCollection>
RflatCollectShort(Function<? super V,? extends ShortIterable> function, R target)<P,VV>
MutableList<VV>flatCollectWith(Function2<? super V,? super P,? extends Iterable<VV>> function, P parameter)<P,VV,R extends Collection<VV>>
RflatCollectWith(Function2<? super V,? super P,? extends Iterable<VV>> function, P parameter, R target)MutableListMultimap<V,K>flip()MutableOrderedMap<V,K>flipUniqueValues()voidforEach(int startIndex, int endIndex, Procedure<? super V> procedure)voidforEach(Consumer<? super V> consumer)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)VgetFirst()Optional<V>getFirstOptional()VgetIfAbsent(K key, Function0<? extends V> function)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)VgetIfAbsentValue(K key, V value)<P> VgetIfAbsentWith(K key, Function<? super P,? extends V> function, P parameter)VgetLast()Optional<V>getLastOptional()VgetOnly()<VV> MutableListMultimap<VV,V>groupBy(Function<? super V,? extends VV> function)<VV,R extends MutableMultimap<VV,V>>
RgroupBy(Function<? super V,? extends VV> function, R target)<VV> MutableListMultimap<VV,V>groupByEach(Function<? super V,? extends Iterable<VV>> function)<VV,R extends MutableMultimap<VV,V>>
RgroupByEach(Function<? super V,? extends Iterable<VV>> function, R target)<VV> MutableOrderedMap<VV,V>groupByUniqueKey(Function<? super V,? extends VV> function)<VV,R extends MutableMapIterable<VV,V>>
RgroupByUniqueKey(Function<? super V,? extends VV> function, R target)inthashCode()<A> AifPresentApply(K key, Function<? super V,? extends A> function)intindexOf(Object object)doubleinjectInto(double injectedValue, DoubleObjectToDoubleFunction<? super V> function)floatinjectInto(float injectedValue, FloatObjectToFloatFunction<? super V> function)intinjectInto(int injectedValue, IntObjectToIntFunction<? super V> function)longinjectInto(long injectedValue, LongObjectToLongFunction<? super V> function)<IV> IVinjectInto(IV injectedValue, Function2<? super IV,? super V,? extends IV> function)<R extends Collection<V>>
Rinto(R target)booleanisEmpty()Iterator<V>iterator()Set<K>keySet()RichIterable<K>keysView()RichIterable<Pair<K,V>>keyValuesView()StringmakeString()StringmakeString(String separator)StringmakeString(String start, String separator, String end)Vmax()Vmax(Comparator<? super V> comparator)<VV extends Comparable<? super VV>>
VmaxBy(Function<? super V,? extends VV> function)<VV extends Comparable<? super VV>>
Optional<V>maxByOptional(Function<? super V,? extends VV> function)Optional<V>maxOptional()Optional<V>maxOptional(Comparator<? super V> comparator)Vmin()Vmin(Comparator<? super V> comparator)<VV extends Comparable<? super VV>>
VminBy(Function<? super V,? extends VV> function)<VV extends Comparable<? super VV>>
Optional<V>minByOptional(Function<? super V,? extends VV> function)Optional<V>minOptional()Optional<V>minOptional(Comparator<? super V> comparator)MutableMapIterable<K,V>newEmpty()booleannoneSatisfy(Predicate<? super V> predicate)<P> booleannoneSatisfyWith(Predicate2<? super V,? super P> predicate, P parameter)booleannotEmpty()static <K,V>
UnmodifiableMutableOrderedMap<K,V>of(MutableOrderedMap<K,V> map)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> t)voidputAllMapIterable(MapIterable<? extends K,? extends V> mapIterable)Optional<V>reduce(BinaryOperator<V> accumulator)<R> RreduceInPlace(Supplier<R> supplier, BiConsumer<R,? super V> accumulator)<R,A>
RreduceInPlace(Collector<? super V,A,R> collector)MutableList<V>reject(Predicate<? super V> predicate)<R extends Collection<V>>
Rreject(Predicate<? super V> predicate, R target)MutableOrderedMap<K,V>reject(Predicate2<? super K,? super V> predicate)<P> MutableList<V>rejectWith(Predicate2<? super V,? super P> predicate, P parameter)<P,R extends Collection<V>>
RrejectWith(Predicate2<? super V,? super P> predicate, P parameter, R targetCollection)Vremove(Object key)booleanremoveAllKeys(Set<? extends K> keys)booleanremoveIf(Predicate2<? super K,? super V> predicate)VremoveKey(K key)voidreverseForEach(Procedure<? super V> procedure)voidreverseForEachWithIndex(ObjectIntProcedure<? super V> procedure)MutableList<V>select(Predicate<? super V> predicate)<R extends Collection<V>>
Rselect(Predicate<? super V> predicate, R target)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)<P,R extends Collection<V>>
RselectWith(Predicate2<? super V,? super P> predicate, P parameter, R targetCollection)intsize()<VV> MutableObjectDoubleMap<VV>sumByDouble(Function<? super V,? extends VV> groupBy, DoubleFunction<? super V> function)<VV> MutableObjectDoubleMap<VV>sumByFloat(Function<? super V,? extends VV> groupBy, FloatFunction<? super V> function)<VV> MutableObjectLongMap<VV>sumByInt(Function<? super V,? extends VV> groupBy, IntFunction<? super V> function)<VV> MutableObjectLongMap<VV>sumByLong(Function<? super V,? extends VV> groupBy, LongFunction<? super V> function)DoubleSummaryStatisticssummarizeDouble(DoubleFunction<? super V> function)DoubleSummaryStatisticssummarizeFloat(FloatFunction<? super V> function)IntSummaryStatisticssummarizeInt(IntFunction<? super V> function)LongSummaryStatisticssummarizeLong(LongFunction<? super V> function)doublesumOfDouble(DoubleFunction<? super V> function)doublesumOfFloat(FloatFunction<? super V> function)longsumOfInt(IntFunction<? super V> function)longsumOfLong(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)Object[]toArray()<T> T[]toArray(T[] target)MutableBag<V>toBag()<NK,NV>
MutableBiMap<NK,NV>toBiMap(Function<? super V,? extends NK> keyFunction, Function<? super V,? extends NV> valueFunction)ImmutableOrderedMap<K,V>toImmutable()MutableList<V>toList()<NK,NV>
MutableMap<NK,NV>toMap(Function<? super V,? extends NK> keyFunction, Function<? super V,? extends NV> valueFunction)<NK,NV,R extends Map<NK,NV>>
RtoMap(Function<? super V,? extends NK> keyFunction, Function<? super V,? extends NV> valueFunction, R target)MutableOrderedMap<K,V>toReversed()MutableSet<V>toSet()MutableSortedBag<V>toSortedBag()MutableSortedBag<V>toSortedBag(Comparator<? super V> comparator)MutableList<V>toSortedList()MutableList<V>toSortedList(Comparator<? super V> comparator)<NK,NV>
MutableSortedMap<NK,NV>toSortedMap(Comparator<? super NK> comparator, Function<? super V,? extends NK> keyFunction, Function<? super V,? extends NV> valueFunction)<NK,NV>
MutableSortedMap<NK,NV>toSortedMap(Function<? super V,? extends NK> keyFunction, Function<? super V,? extends NV> valueFunction)MutableSortedSet<V>toSortedSet()MutableSortedSet<V>toSortedSet(Comparator<? super V> comparator)StringtoString()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)Collection<V>values()RichIterable<V>valuesView()MutableOrderedMap<K,V>withAllKeyValueArguments(Pair<? extends K,? extends V>... keyValuePairs)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)<S,R extends Collection<Pair<V,S>>>
Rzip(Iterable<S> that, R target)MutableList<Pair<V,Integer>>zipWithIndex()<R extends Collection<Pair<V,Integer>>>
RzipWithIndex(R target)-
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
injectIntoKeyValue, parallelStream, spliterator, stream
-
Methods inherited from interface org.eclipse.collections.api.map.MutableMapIterable
add, countByEach, forEach, getOrDefault, putPair
-
Methods inherited from interface org.eclipse.collections.api.ordered.OrderedIterable
rejectWithIndex, selectWithIndex, toStack
-
Methods inherited from interface org.eclipse.collections.api.ordered.ReversibleIterable
asReversed
-
Methods inherited from interface org.eclipse.collections.api.RichIterable
aggregateBy, containsAny, containsAnyIterable, containsBy, containsNone, containsNoneIterable, countByEach, forEach, getAny, groupByAndCollect, injectIntoDouble, injectIntoFloat, injectIntoInt, injectIntoLong, makeString, toImmutableBag, toImmutableBiMap, toImmutableList, toImmutableMap, toImmutableSet, toImmutableSortedBag, toImmutableSortedBag, toImmutableSortedBagBy, toImmutableSortedList, toImmutableSortedList, toImmutableSortedListBy, toImmutableSortedSet, toImmutableSortedSet, toImmutableSortedSetBy, toSortedBagBy, toSortedListBy, toSortedMapBy, toSortedSetBy
-
-
-
-
Constructor Detail
-
UnmodifiableMutableOrderedMap
public UnmodifiableMutableOrderedMap(MutableOrderedMap<K,V> delegate)
-
-
Method Detail
-
of
public static <K,V> UnmodifiableMutableOrderedMap<K,V> of(MutableOrderedMap<K,V> map)
-
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>... keyValuePairs)
- 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>
-
removeAllKeys
public boolean removeAllKeys(Set<? extends K> keys)
- Specified by:
removeAllKeysin interfaceMutableMapIterable<K,V>
-
removeIf
public boolean removeIf(Predicate2<? super K,? super V> predicate)
- Specified by:
removeIfin 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>
-
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>
-
asSynchronized
public MutableMapIterable<K,V> asSynchronized()
- Specified by:
asSynchronizedin interfaceMutableMapIterable<K,V>
-
asUnmodifiable
public MutableOrderedMap<K,V> asUnmodifiable()
- Specified by:
asUnmodifiablein interfaceMutableMapIterable<K,V>- Specified by:
asUnmodifiablein interfaceMutableOrderedMap<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>
-
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>
-
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>
-
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>
-
forEachWithIndex
public void forEachWithIndex(ObjectIntProcedure<? super V> objectIntProcedure)
- Specified by:
forEachWithIndexin interfaceInternalIterable<K>- Specified by:
forEachWithIndexin interfaceOrderedIterable<K>
-
forEachWith
public <P> void forEachWith(Procedure2<? super V,? super P> procedure, P parameter)
- Specified by:
forEachWithin interfaceInternalIterable<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 <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>
-
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>
-
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>
-
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>
-
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>
-
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>
-
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>
-
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>
-
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>
-
collect
public <VV> MutableList<VV> collect(Function<? super V,? extends VV> 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 <VV> MutableList<VV> collectIf(Predicate<? super V> predicate, Function<? super V,? extends VV> 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>
-
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>
-
flatCollect
public <VV> MutableList<VV> flatCollect(Function<? super V,? extends Iterable<VV>> 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>
-
flatCollectWith
public <P,VV> MutableList<VV> flatCollectWith(Function2<? super V,? super P,? extends Iterable<VV>> function, P parameter)
- Specified by:
flatCollectWithin interfaceMutableOrderedMap<K,V>- Specified by:
flatCollectWithin interfaceOrderedIterable<K>- Specified by:
flatCollectWithin interfaceOrderedMap<K,V>- Specified by:
flatCollectWithin interfaceReversibleIterable<K>- Specified by:
flatCollectWithin 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>
-
toImmutable
public ImmutableOrderedMap<K,V> toImmutable()
- Specified by:
toImmutablein interfaceMapIterable<K,V>- Specified by:
toImmutablein interfaceMutableMapIterable<K,V>- Specified by:
toImmutablein interfaceOrderedMap<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>
-
forEachValue
public void forEachValue(Procedure<? super V> procedure)
- Specified by:
forEachValuein interfaceMapIterable<K,V>
-
forEachKey
public void forEachKey(Procedure<? super K> procedure)
- Specified by:
forEachKeyin interfaceMapIterable<K,V>
-
forEachKeyValue
public void forEachKeyValue(Procedure2<? super K,? super V> procedure)
- Specified by:
forEachKeyValuein interfaceMapIterable<K,V>
-
getIfAbsent
public V getIfAbsent(K key, Function0<? extends V> function)
- Specified by:
getIfAbsentin interfaceMapIterable<K,V>
-
getIfAbsentValue
public V getIfAbsentValue(K key, V value)
- Specified by:
getIfAbsentValuein interfaceMapIterable<K,V>
-
getIfAbsentWith
public <P> V getIfAbsentWith(K key, Function<? super P,? extends V> function, P parameter)
- Specified by:
getIfAbsentWithin interfaceMapIterable<K,V>
-
ifPresentApply
public <A> A ifPresentApply(K key, Function<? super V,? extends A> function)
- Specified by:
ifPresentApplyin interfaceMapIterable<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>
-
equals
public boolean equals(Object o)
-
hashCode
public int hashCode()
-
toString
public String toString()
- Specified by:
toStringin interfaceMapIterable<K,V>- Specified by:
toStringin interfaceRichIterable<K>- Overrides:
toStringin classObject
-
size
public int size()
-
isEmpty
public boolean isEmpty()
-
notEmpty
public boolean notEmpty()
- Specified by:
notEmptyin interfaceRichIterable<K>
-
getFirst
public V getFirst()
- Specified by:
getFirstin interfaceOrderedIterable<K>- Specified by:
getFirstin interfaceRichIterable<K>
-
getLast
public V getLast()
- Specified by:
getLastin interfaceOrderedIterable<K>- Specified by:
getLastin interfaceRichIterable<K>
-
getOnly
public V getOnly()
- Specified by:
getOnlyin interfaceRichIterable<K>
-
contains
public boolean contains(Object object)
- Specified by:
containsin interfaceRichIterable<K>
-
containsAllIterable
public boolean containsAllIterable(Iterable<?> source)
- Specified by:
containsAllIterablein interfaceRichIterable<K>
-
containsAll
public boolean containsAll(Collection<?> source)
- Specified by:
containsAllin interfaceRichIterable<K>
-
containsAllArguments
public boolean containsAllArguments(Object... elements)
- Specified by:
containsAllArgumentsin interfaceRichIterable<K>
-
each
public void each(Procedure<? super V> procedure)
- Specified by:
eachin interfaceRichIterable<K>
-
select
public <R extends Collection<V>> R select(Predicate<? super V> predicate, R target)
- Specified by:
selectin interfaceRichIterable<K>
-
selectWith
public <P,R extends Collection<V>> R selectWith(Predicate2<? super V,? super P> predicate, P parameter, R targetCollection)
- Specified by:
selectWithin interfaceRichIterable<K>
-
reject
public <R extends Collection<V>> R reject(Predicate<? super V> predicate, R target)
- Specified by:
rejectin interfaceRichIterable<K>
-
rejectWith
public <P,R extends Collection<V>> R rejectWith(Predicate2<? super V,? super P> predicate, P parameter, R targetCollection)
- Specified by:
rejectWithin interfaceRichIterable<K>
-
collect
public <VV,R extends Collection<VV>> R collect(Function<? super V,? extends VV> function, R target)
- Specified by:
collectin interfaceRichIterable<K>
-
collectBoolean
public <R extends MutableBooleanCollection> R collectBoolean(BooleanFunction<? super V> booleanFunction, R target)
- Specified by:
collectBooleanin interfaceRichIterable<K>
-
flatCollectBoolean
public <R extends MutableBooleanCollection> R flatCollectBoolean(Function<? super V,? extends BooleanIterable> function, R target)
- Specified by:
flatCollectBooleanin interfaceRichIterable<K>
-
collectByte
public <R extends MutableByteCollection> R collectByte(ByteFunction<? super V> byteFunction, R target)
- Specified by:
collectBytein interfaceRichIterable<K>
-
flatCollectByte
public <R extends MutableByteCollection> R flatCollectByte(Function<? super V,? extends ByteIterable> function, R target)
- Specified by:
flatCollectBytein interfaceRichIterable<K>
-
collectChar
public <R extends MutableCharCollection> R collectChar(CharFunction<? super V> charFunction, R target)
- Specified by:
collectCharin interfaceRichIterable<K>
-
flatCollectChar
public <R extends MutableCharCollection> R flatCollectChar(Function<? super V,? extends CharIterable> function, R target)
- Specified by:
flatCollectCharin interfaceRichIterable<K>
-
collectDouble
public <R extends MutableDoubleCollection> R collectDouble(DoubleFunction<? super V> doubleFunction, R target)
- Specified by:
collectDoublein interfaceRichIterable<K>
-
flatCollectDouble
public <R extends MutableDoubleCollection> R flatCollectDouble(Function<? super V,? extends DoubleIterable> function, R target)
- Specified by:
flatCollectDoublein interfaceRichIterable<K>
-
collectFloat
public <R extends MutableFloatCollection> R collectFloat(FloatFunction<? super V> floatFunction, R target)
- Specified by:
collectFloatin interfaceRichIterable<K>
-
flatCollectFloat
public <R extends MutableFloatCollection> R flatCollectFloat(Function<? super V,? extends FloatIterable> function, R target)
- Specified by:
flatCollectFloatin interfaceRichIterable<K>
-
collectInt
public <R extends MutableIntCollection> R collectInt(IntFunction<? super V> intFunction, R target)
- Specified by:
collectIntin interfaceRichIterable<K>
-
flatCollectInt
public <R extends MutableIntCollection> R flatCollectInt(Function<? super V,? extends IntIterable> function, R target)
- Specified by:
flatCollectIntin interfaceRichIterable<K>
-
collectLong
public <R extends MutableLongCollection> R collectLong(LongFunction<? super V> longFunction, R target)
- Specified by:
collectLongin interfaceRichIterable<K>
-
flatCollectLong
public <R extends MutableLongCollection> R flatCollectLong(Function<? super V,? extends LongIterable> function, R target)
- Specified by:
flatCollectLongin interfaceRichIterable<K>
-
collectShort
public <R extends MutableShortCollection> R collectShort(ShortFunction<? super V> shortFunction, R target)
- Specified by:
collectShortin interfaceRichIterable<K>
-
flatCollectShort
public <R extends MutableShortCollection> R flatCollectShort(Function<? super V,? extends ShortIterable> function, R target)
- Specified by:
flatCollectShortin interfaceRichIterable<K>
-
collectWith
public <P,VV,R extends Collection<VV>> R collectWith(Function2<? super V,? super P,? extends VV> function, P parameter, R targetCollection)
- Specified by:
collectWithin interfaceRichIterable<K>
-
collectIf
public <VV,R extends Collection<VV>> R collectIf(Predicate<? super V> predicate, Function<? super V,? extends VV> function, R target)
- Specified by:
collectIfin interfaceRichIterable<K>
-
flatCollect
public <VV,R extends Collection<VV>> R flatCollect(Function<? super V,? extends Iterable<VV>> function, R target)
- Specified by:
flatCollectin interfaceRichIterable<K>
-
flatCollectWith
public <P,VV,R extends Collection<VV>> R flatCollectWith(Function2<? super V,? super P,? extends Iterable<VV>> function, P parameter, R target)
- Specified by:
flatCollectWithin interfaceRichIterable<K>
-
detect
public V detect(Predicate<? super V> predicate)
- Specified by:
detectin interfaceRichIterable<K>
-
detectWith
public <P> V detectWith(Predicate2<? super V,? super P> predicate, P parameter)
- Specified by:
detectWithin interfaceRichIterable<K>
-
detectOptional
public Optional<V> detectOptional(Predicate<? super V> predicate)
- Specified by:
detectOptionalin interfaceRichIterable<K>
-
detectWithOptional
public <P> Optional<V> detectWithOptional(Predicate2<? super V,? super P> predicate, P parameter)
- Specified by:
detectWithOptionalin interfaceRichIterable<K>
-
detectIfNone
public V detectIfNone(Predicate<? super V> predicate, Function0<? extends V> function)
- Specified by:
detectIfNonein interfaceRichIterable<K>
-
detectWithIfNone
public <P> V detectWithIfNone(Predicate2<? super V,? super P> predicate, P parameter, Function0<? extends V> function)
- Specified by:
detectWithIfNonein interfaceRichIterable<K>
-
count
public int count(Predicate<? super V> predicate)
- Specified by:
countin interfaceRichIterable<K>
-
countWith
public <P> int countWith(Predicate2<? super V,? super P> predicate, P parameter)
- Specified by:
countWithin interfaceRichIterable<K>
-
anySatisfy
public boolean anySatisfy(Predicate<? super V> predicate)
- Specified by:
anySatisfyin interfaceRichIterable<K>
-
anySatisfyWith
public <P> boolean anySatisfyWith(Predicate2<? super V,? super P> predicate, P parameter)
- Specified by:
anySatisfyWithin interfaceRichIterable<K>
-
allSatisfy
public boolean allSatisfy(Predicate<? super V> predicate)
- Specified by:
allSatisfyin interfaceRichIterable<K>
-
allSatisfyWith
public <P> boolean allSatisfyWith(Predicate2<? super V,? super P> predicate, P parameter)
- Specified by:
allSatisfyWithin interfaceRichIterable<K>
-
noneSatisfy
public boolean noneSatisfy(Predicate<? super V> predicate)
- Specified by:
noneSatisfyin interfaceRichIterable<K>
-
noneSatisfyWith
public <P> boolean noneSatisfyWith(Predicate2<? super V,? super P> predicate, P parameter)
- Specified by:
noneSatisfyWithin interfaceRichIterable<K>
-
injectInto
public <IV> IV injectInto(IV injectedValue, Function2<? super IV,? super V,? extends IV> function)- Specified by:
injectIntoin interfaceRichIterable<K>
-
injectInto
public int injectInto(int injectedValue, IntObjectToIntFunction<? super V> function)- Specified by:
injectIntoin interfaceRichIterable<K>
-
injectInto
public long injectInto(long injectedValue, LongObjectToLongFunction<? super V> function)- Specified by:
injectIntoin interfaceRichIterable<K>
-
injectInto
public float injectInto(float injectedValue, FloatObjectToFloatFunction<? super V> function)- Specified by:
injectIntoin interfaceRichIterable<K>
-
injectInto
public double injectInto(double injectedValue, DoubleObjectToDoubleFunction<? super V> function)- Specified by:
injectIntoin interfaceRichIterable<K>
-
into
public <R extends Collection<V>> R into(R target)
- Specified by:
intoin interfaceRichIterable<K>
-
toList
public MutableList<V> toList()
- Specified by:
toListin interfaceRichIterable<K>
-
toSortedList
public MutableList<V> toSortedList()
- Specified by:
toSortedListin interfaceRichIterable<K>
-
toSortedList
public MutableList<V> toSortedList(Comparator<? super V> comparator)
- Specified by:
toSortedListin interfaceRichIterable<K>
-
toSet
public MutableSet<V> toSet()
- Specified by:
toSetin interfaceRichIterable<K>
-
toSortedSet
public MutableSortedSet<V> toSortedSet()
- Specified by:
toSortedSetin interfaceRichIterable<K>
-
toSortedSet
public MutableSortedSet<V> toSortedSet(Comparator<? super V> comparator)
- Specified by:
toSortedSetin interfaceRichIterable<K>
-
toBag
public MutableBag<V> toBag()
- Specified by:
toBagin interfaceRichIterable<K>
-
toSortedBag
public MutableSortedBag<V> toSortedBag()
- Specified by:
toSortedBagin interfaceRichIterable<K>
-
toSortedBag
public MutableSortedBag<V> toSortedBag(Comparator<? super V> comparator)
- Specified by:
toSortedBagin interfaceRichIterable<K>
-
toMap
public <NK,NV> MutableMap<NK,NV> toMap(Function<? super V,? extends NK> keyFunction, Function<? super V,? extends NV> valueFunction)
- Specified by:
toMapin interfaceRichIterable<K>
-
toMap
public <NK,NV,R extends Map<NK,NV>> R toMap(Function<? super V,? extends NK> keyFunction, Function<? super V,? extends NV> valueFunction, R target)
- Specified by:
toMapin interfaceRichIterable<K>
-
toSortedMap
public <NK,NV> MutableSortedMap<NK,NV> toSortedMap(Function<? super V,? extends NK> keyFunction, Function<? super V,? extends NV> valueFunction)
- Specified by:
toSortedMapin interfaceRichIterable<K>
-
toSortedMap
public <NK,NV> MutableSortedMap<NK,NV> toSortedMap(Comparator<? super NK> comparator, Function<? super V,? extends NK> keyFunction, Function<? super V,? extends NV> valueFunction)
- Specified by:
toSortedMapin interfaceRichIterable<K>
-
toBiMap
public <NK,NV> MutableBiMap<NK,NV> toBiMap(Function<? super V,? extends NK> keyFunction, Function<? super V,? extends NV> valueFunction)
- Specified by:
toBiMapin interfaceRichIterable<K>
-
asLazy
public LazyIterable<V> asLazy()
- Specified by:
asLazyin interfaceRichIterable<K>
-
toArray
public Object[] toArray()
- Specified by:
toArrayin interfaceRichIterable<K>
-
toArray
public <T> T[] toArray(T[] target)
- Specified by:
toArrayin interfaceRichIterable<K>
-
min
public V min(Comparator<? super V> comparator)
- Specified by:
minin interfaceRichIterable<K>
-
max
public V max(Comparator<? super V> comparator)
- Specified by:
maxin interfaceRichIterable<K>
-
minOptional
public Optional<V> minOptional(Comparator<? super V> comparator)
- Specified by:
minOptionalin interfaceRichIterable<K>
-
maxOptional
public Optional<V> maxOptional(Comparator<? super V> comparator)
- Specified by:
maxOptionalin interfaceRichIterable<K>
-
min
public V min()
- Specified by:
minin interfaceOrderedIterable<K>- Specified by:
minin interfaceRichIterable<K>
-
max
public V max()
- Specified by:
maxin interfaceOrderedIterable<K>- Specified by:
maxin interfaceRichIterable<K>
-
minOptional
public Optional<V> minOptional()
- Specified by:
minOptionalin interfaceRichIterable<K>
-
maxOptional
public Optional<V> maxOptional()
- Specified by:
maxOptionalin interfaceRichIterable<K>
-
minBy
public <VV extends Comparable<? super VV>> V minBy(Function<? super V,? extends VV> function)
- Specified by:
minByin interfaceRichIterable<K>
-
maxBy
public <VV extends Comparable<? super VV>> V maxBy(Function<? super V,? extends VV> function)
- Specified by:
maxByin interfaceRichIterable<K>
-
minByOptional
public <VV extends Comparable<? super VV>> Optional<V> minByOptional(Function<? super V,? extends VV> function)
- Specified by:
minByOptionalin interfaceRichIterable<K>
-
maxByOptional
public <VV extends Comparable<? super VV>> Optional<V> maxByOptional(Function<? super V,? extends VV> function)
- Specified by:
maxByOptionalin interfaceRichIterable<K>
-
sumOfInt
public long sumOfInt(IntFunction<? super V> function)
- Specified by:
sumOfIntin interfaceRichIterable<K>
-
sumOfFloat
public double sumOfFloat(FloatFunction<? super V> function)
- Specified by:
sumOfFloatin interfaceRichIterable<K>
-
sumOfLong
public long sumOfLong(LongFunction<? super V> function)
- Specified by:
sumOfLongin interfaceRichIterable<K>
-
sumOfDouble
public double sumOfDouble(DoubleFunction<? super V> function)
- Specified by:
sumOfDoublein interfaceRichIterable<K>
-
summarizeInt
public IntSummaryStatistics summarizeInt(IntFunction<? super V> function)
- Specified by:
summarizeIntin interfaceRichIterable<K>
-
summarizeFloat
public DoubleSummaryStatistics summarizeFloat(FloatFunction<? super V> function)
- Specified by:
summarizeFloatin interfaceRichIterable<K>
-
summarizeLong
public LongSummaryStatistics summarizeLong(LongFunction<? super V> function)
- Specified by:
summarizeLongin interfaceRichIterable<K>
-
summarizeDouble
public DoubleSummaryStatistics summarizeDouble(DoubleFunction<? super V> function)
- Specified by:
summarizeDoublein interfaceRichIterable<K>
-
reduceInPlace
public <R,A> R reduceInPlace(Collector<? super V,A,R> collector)
- Specified by:
reduceInPlacein interfaceRichIterable<K>
-
reduceInPlace
public <R> R reduceInPlace(Supplier<R> supplier, BiConsumer<R,? super V> accumulator)
- Specified by:
reduceInPlacein interfaceRichIterable<K>
-
reduce
public Optional<V> reduce(BinaryOperator<V> accumulator)
- Specified by:
reducein interfaceRichIterable<K>
-
sumByInt
public <VV> MutableObjectLongMap<VV> sumByInt(Function<? super V,? extends VV> groupBy, IntFunction<? super V> function)
- Specified by:
sumByIntin interfaceMutableMapIterable<K,V>- Specified by:
sumByIntin interfaceRichIterable<K>
-
sumByFloat
public <VV> MutableObjectDoubleMap<VV> sumByFloat(Function<? super V,? extends VV> groupBy, FloatFunction<? super V> function)
- Specified by:
sumByFloatin interfaceMutableMapIterable<K,V>- Specified by:
sumByFloatin interfaceRichIterable<K>
-
sumByLong
public <VV> MutableObjectLongMap<VV> sumByLong(Function<? super V,? extends VV> groupBy, LongFunction<? super V> function)
- Specified by:
sumByLongin interfaceMutableMapIterable<K,V>- Specified by:
sumByLongin interfaceRichIterable<K>
-
sumByDouble
public <VV> MutableObjectDoubleMap<VV> sumByDouble(Function<? super V,? extends VV> groupBy, DoubleFunction<? super V> function)
- Specified by:
sumByDoublein interfaceMutableMapIterable<K,V>- Specified by:
sumByDoublein interfaceRichIterable<K>
-
makeString
public String makeString()
- Specified by:
makeStringin interfaceRichIterable<K>
-
makeString
public String makeString(String separator)
- Specified by:
makeStringin interfaceRichIterable<K>
-
makeString
public String makeString(String start, String separator, String end)
- Specified by:
makeStringin interfaceRichIterable<K>
-
appendString
public void appendString(Appendable appendable)
- Specified by:
appendStringin interfaceRichIterable<K>
-
appendString
public void appendString(Appendable appendable, String separator)
- Specified by:
appendStringin interfaceRichIterable<K>
-
appendString
public void appendString(Appendable appendable, String start, String separator, String end)
- Specified by:
appendStringin interfaceRichIterable<K>
-
countBy
public <VV> MutableBag<VV> countBy(Function<? super V,? extends VV> function)
- Specified by:
countByin interfaceMutableMapIterable<K,V>- Specified by:
countByin interfaceRichIterable<K>
-
countBy
public <VV,R extends MutableBagIterable<VV>> R countBy(Function<? super V,? extends VV> function, R target)
- Specified by:
countByin interfaceRichIterable<K>
-
countByWith
public <VV,P> MutableBag<VV> countByWith(Function2<? super V,? super P,? extends VV> function, P parameter)
- Specified by:
countByWithin interfaceMutableMapIterable<K,V>- Specified by:
countByWithin interfaceRichIterable<K>
-
countByWith
public <VV,P,R extends MutableBagIterable<VV>> R countByWith(Function2<? super V,? super P,? extends VV> function, P parameter, R target)
- Specified by:
countByWithin interfaceRichIterable<K>
-
groupBy
public <VV,R extends MutableMultimap<VV,V>> R groupBy(Function<? super V,? extends VV> function, R target)
- Specified by:
groupByin interfaceRichIterable<K>
-
groupByEach
public <VV,R extends MutableMultimap<VV,V>> R groupByEach(Function<? super V,? extends Iterable<VV>> function, R target)
- Specified by:
groupByEachin interfaceRichIterable<K>
-
groupByUniqueKey
public <VV,R extends MutableMapIterable<VV,V>> R groupByUniqueKey(Function<? super V,? extends VV> function, R target)
- Specified by:
groupByUniqueKeyin interfaceRichIterable<K>
-
zip
public <S,R extends Collection<Pair<V,S>>> R zip(Iterable<S> that, R target)
- Specified by:
zipin interfaceOrderedIterable<K>- Specified by:
zipin interfaceRichIterable<K>
-
zipWithIndex
public <R extends Collection<Pair<V,Integer>>> R zipWithIndex(R target)
- Specified by:
zipWithIndexin interfaceOrderedIterable<K>- Specified by:
zipWithIndexin interfaceRichIterable<K>
-
chunk
public RichIterable<RichIterable<V>> chunk(int size)
- Specified by:
chunkin interfaceRichIterable<K>
-
aggregateInPlaceBy
public <KK,VV> MutableMap<KK,VV> aggregateInPlaceBy(Function<? super V,? extends KK> groupBy, Function0<? extends VV> zeroValueFactory, Procedure2<? super VV,? super V> mutatingAggregator)
- Specified by:
aggregateInPlaceByin interfaceMutableMapIterable<K,V>- Specified by:
aggregateInPlaceByin interfaceRichIterable<K>
-
aggregateBy
public <KK,VV> MutableMapIterable<KK,VV> aggregateBy(Function<? super V,? extends KK> groupBy, Function0<? extends VV> zeroValueFactory, Function2<? super VV,? super V,? extends VV> nonMutatingAggregator)
- Specified by:
aggregateByin interfaceMutableMapIterable<K,V>- Specified by:
aggregateByin interfaceRichIterable<K>
-
aggregateBy
public <K1,V1,V2> MutableMapIterable<K1,V2> aggregateBy(Function<? super K,? extends K1> keyFunction, Function<? super V,? extends V1> valueFunction, Function0<? extends V2> zeroValueFactory, Function2<? super V2,? super V1,? extends V2> nonMutatingAggregator)
- Specified by:
aggregateByin interfaceMapIterable<K,V>- Specified by:
aggregateByin interfaceMutableMapIterable<K,V>
-
newEmpty
public MutableMapIterable<K,V> newEmpty()
- Specified by:
newEmptyin interfaceMutableMapIterable<K,V>
-
reverseForEach
public void reverseForEach(Procedure<? super V> procedure)
- Specified by:
reverseForEachin interfaceReversibleIterable<K>
-
reverseForEachWithIndex
public void reverseForEachWithIndex(ObjectIntProcedure<? super V> procedure)
- Specified by:
reverseForEachWithIndexin interfaceReversibleIterable<K>
-
detectLastIndex
public int detectLastIndex(Predicate<? super V> predicate)
- Specified by:
detectLastIndexin interfaceReversibleIterable<K>
-
collectWithIndex
public <V1> ReversibleIterable<V1> collectWithIndex(ObjectIntToObjectFunction<? super V,? extends V1> function)
- Specified by:
collectWithIndexin interfaceOrderedIterable<K>- Specified by:
collectWithIndexin interfaceReversibleIterable<K>
-
indexOf
public int indexOf(Object object)
- Specified by:
indexOfin interfaceOrderedIterable<K>
-
getFirstOptional
public Optional<V> getFirstOptional()
- Specified by:
getFirstOptionalin interfaceOrderedIterable<K>
-
getLastOptional
public Optional<V> getLastOptional()
- Specified by:
getLastOptionalin interfaceOrderedIterable<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>
-
collectWithIndex
public <VV,R extends Collection<VV>> R collectWithIndex(ObjectIntToObjectFunction<? super V,? extends VV> function, R target)
- Specified by:
collectWithIndexin interfaceOrderedIterable<K>
-
detectIndex
public int detectIndex(Predicate<? super V> predicate)
- Specified by:
detectIndexin interfaceOrderedIterable<K>
-
-