Package org.eclipse.collections.impl.map
Class AbstractMapIterable<K,V>
- java.lang.Object
-
- org.eclipse.collections.impl.AbstractRichIterable<V>
-
- org.eclipse.collections.impl.map.AbstractMapIterable<K,V>
-
- All Implemented Interfaces:
Iterable<V>,InternalIterable<V>,MapIterable<K,V>,RichIterable<V>
- Direct Known Subclasses:
AbstractImmutableMap,AbstractImmutableSortedMap,AbstractMutableMapIterable,OrderedMapAdapter
public abstract class AbstractMapIterable<K,V> extends AbstractRichIterable<V> implements MapIterable<K,V>
-
-
Constructor Summary
Constructors Constructor Description AbstractMapIterable()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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)LazyIterable<V>asLazy()RichIterable<RichIterable<V>>chunk(int size)booleancontains(Object object)Vdetect(Predicate<? super V> predicate)VdetectIfNone(Predicate<? super V> predicate, Function0<? extends V> function)Optional<V>detectOptional(Predicate<? 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)voideach(Procedure<? super V> procedure)voidforEachKey(Procedure<? super K> procedure)voidforEachValue(Procedure<? super V> procedure)<P> voidforEachWith(Procedure2<? super V,? super P> procedure2, P parameter)voidforEachWithIndex(ObjectIntProcedure<? super V> objectIntProcedure)VgetFirst()VgetIfAbsent(K key, Function0<? extends V> function)VgetIfAbsentValue(K key, V value)<P> VgetIfAbsentWith(K key, Function<? super P,? extends V> function, P parameter)VgetLast()VgetOnly()VgetOrDefault(Object key, V defaultValue)<A> AifPresentApply(K key, Function<? super V,? extends A> function)booleannoneSatisfy(Predicate<? super V> predicate)<P> booleannoneSatisfyWith(Predicate2<? super V,? super P> predicate, P parameter)Object[]toArray()<T> T[]toArray(T[] a)-
Methods inherited from class org.eclipse.collections.impl.AbstractRichIterable
appendString, appendString, collect, collectIf, collectWith, containsAll, containsAllArguments, containsAllIterable, count, countByEach, 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, toString, zip, zipWithIndex
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.eclipse.collections.api.InternalIterable
forEach
-
Methods inherited from interface org.eclipse.collections.api.map.MapIterable
aggregateBy, collect, collectValues, containsKey, containsValue, detect, detectOptional, equals, flip, flipUniqueValues, forEach, forEachKeyValue, get, hashCode, injectIntoKeyValue, keysView, keyValuesView, parallelStream, reject, select, spliterator, stream, tap, toImmutable, toString, valuesView
-
Methods inherited from interface org.eclipse.collections.api.RichIterable
aggregateBy, aggregateBy, aggregateInPlaceBy, appendString, appendString, appendString, collect, collect, collectBoolean, collectBoolean, collectByte, collectByte, collectChar, collectChar, collectDouble, collectDouble, collectFloat, collectFloat, collectIf, collectIf, collectInt, collectInt, collectLong, collectLong, collectShort, collectShort, collectWith, collectWith, containsAll, containsAllArguments, containsAllIterable, containsAny, containsAnyIterable, containsBy, containsNone, containsNoneIterable, count, countBy, countBy, countByEach, countByEach, countByWith, countByWith, countWith, flatCollect, flatCollect, flatCollectBoolean, flatCollectByte, flatCollectChar, flatCollectDouble, flatCollectFloat, flatCollectInt, flatCollectLong, flatCollectShort, flatCollectWith, flatCollectWith, forEach, getAny, groupBy, groupBy, groupByAndCollect, groupByEach, groupByEach, groupByUniqueKey, groupByUniqueKey, injectInto, injectInto, injectInto, injectInto, injectInto, injectIntoDouble, injectIntoFloat, injectIntoInt, injectIntoLong, into, isEmpty, makeString, makeString, makeString, makeString, max, max, maxBy, maxByOptional, maxOptional, maxOptional, min, min, minBy, minByOptional, minOptional, minOptional, notEmpty, partition, partitionWith, reduce, reduceInPlace, reduceInPlace, reject, reject, rejectWith, rejectWith, select, select, selectInstancesOf, selectWith, selectWith, size, sumByDouble, sumByFloat, sumByInt, sumByLong, summarizeDouble, summarizeFloat, summarizeInt, summarizeLong, sumOfDouble, sumOfFloat, sumOfInt, sumOfLong, 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, zip, zip, zipWithIndex, zipWithIndex
-
-
-
-
Method Detail
-
ifPresentApply
public <A> A ifPresentApply(K key, Function<? super V,? extends A> function)
- Specified by:
ifPresentApplyin interfaceMapIterable<K,V>
-
getOrDefault
public V getOrDefault(Object key, V defaultValue)
- Specified by:
getOrDefaultin 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>
-
anySatisfy
public boolean anySatisfy(Predicate<? super V> predicate)
- Specified by:
anySatisfyin interfaceRichIterable<K>- Overrides:
anySatisfyin classAbstractRichIterable<V>
-
anySatisfyWith
public <P> boolean anySatisfyWith(Predicate2<? super V,? super P> predicate, P parameter)
- Specified by:
anySatisfyWithin interfaceRichIterable<K>- Overrides:
anySatisfyWithin classAbstractRichIterable<V>
-
allSatisfy
public boolean allSatisfy(Predicate<? super V> predicate)
- Specified by:
allSatisfyin interfaceRichIterable<K>- Overrides:
allSatisfyin classAbstractRichIterable<V>
-
allSatisfyWith
public <P> boolean allSatisfyWith(Predicate2<? super V,? super P> predicate, P parameter)
- Specified by:
allSatisfyWithin interfaceRichIterable<K>- Overrides:
allSatisfyWithin classAbstractRichIterable<V>
-
noneSatisfy
public boolean noneSatisfy(Predicate<? super V> predicate)
- Specified by:
noneSatisfyin interfaceRichIterable<K>- Overrides:
noneSatisfyin classAbstractRichIterable<V>
-
noneSatisfyWith
public <P> boolean noneSatisfyWith(Predicate2<? super V,? super P> predicate, P parameter)
- Specified by:
noneSatisfyWithin interfaceRichIterable<K>- Overrides:
noneSatisfyWithin classAbstractRichIterable<V>
-
asLazy
public LazyIterable<V> asLazy()
- Specified by:
asLazyin interfaceRichIterable<K>- Overrides:
asLazyin classAbstractRichIterable<V>
-
chunk
public RichIterable<RichIterable<V>> chunk(int size)
- Specified by:
chunkin interfaceRichIterable<K>
-
each
public void each(Procedure<? super V> procedure)
- Specified by:
eachin interfaceRichIterable<K>
-
forEachWith
public <P> void forEachWith(Procedure2<? super V,? super P> procedure2, P parameter)
- Specified by:
forEachWithin interfaceInternalIterable<K>- Overrides:
forEachWithin classAbstractRichIterable<V>
-
forEachWithIndex
public void forEachWithIndex(ObjectIntProcedure<? super V> objectIntProcedure)
- Specified by:
forEachWithIndexin interfaceInternalIterable<K>- Overrides:
forEachWithIndexin classAbstractRichIterable<V>
-
forEachKey
public void forEachKey(Procedure<? super K> procedure)
- Specified by:
forEachKeyin interfaceMapIterable<K,V>
-
forEachValue
public void forEachValue(Procedure<? super V> procedure)
- Specified by:
forEachValuein interfaceMapIterable<K,V>
-
contains
public boolean contains(Object object)
- Specified by:
containsin interfaceRichIterable<K>- Overrides:
containsin classAbstractRichIterable<V>
-
detect
public V detect(Predicate<? super V> predicate)
- Specified by:
detectin interfaceRichIterable<K>- Overrides:
detectin classAbstractRichIterable<V>
-
detectWith
public <P> V detectWith(Predicate2<? super V,? super P> predicate, P parameter)
- Specified by:
detectWithin interfaceRichIterable<K>- Overrides:
detectWithin classAbstractRichIterable<V>
-
detectOptional
public Optional<V> detectOptional(Predicate<? super V> predicate)
- Specified by:
detectOptionalin interfaceRichIterable<K>- Overrides:
detectOptionalin classAbstractRichIterable<V>
-
detectWithOptional
public <P> Optional<V> detectWithOptional(Predicate2<? super V,? super P> predicate, P parameter)
- Specified by:
detectWithOptionalin interfaceRichIterable<K>- Overrides:
detectWithOptionalin classAbstractRichIterable<V>
-
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>- Overrides:
detectWithIfNonein classAbstractRichIterable<V>
-
getFirst
public V getFirst()
- Specified by:
getFirstin interfaceRichIterable<K>
-
getLast
public V getLast()
- Specified by:
getLastin interfaceRichIterable<K>
-
getOnly
public V getOnly()
- Specified by:
getOnlyin interfaceRichIterable<K>
-
toArray
public Object[] toArray()
- Specified by:
toArrayin interfaceRichIterable<K>- Overrides:
toArrayin classAbstractRichIterable<V>
-
toArray
public <T> T[] toArray(T[] a)
- Specified by:
toArrayin interfaceRichIterable<K>- Overrides:
toArrayin classAbstractRichIterable<V>
-
-