Class AbstractBiMap<K,V>
- java.lang.Object
-
- org.eclipse.collections.impl.bimap.AbstractBiMap<K,V>
-
- All Implemented Interfaces:
Iterable<V>,BiMap<K,V>,InternalIterable<V>,MapIterable<K,V>,RichIterable<V>
- Direct Known Subclasses:
AbstractImmutableBiMap,HashBiMap
public abstract class AbstractBiMap<K,V> extends Object implements BiMap<K,V>
-
-
Constructor Summary
Constructors Constructor Description AbstractBiMap()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated 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)voidappendString(Appendable appendable)voidappendString(Appendable appendable, String separator)voidappendString(Appendable appendable, String start, String separator, String end)LazyIterable<V>asLazy()RichIterable<RichIterable<V>>chunk(int size)<VV,R extends Collection<VV>>
Rcollect(Function<? super V,? extends VV> function, R target)<R extends MutableBooleanCollection>
RcollectBoolean(BooleanFunction<? super V> booleanFunction, R target)<R extends MutableByteCollection>
RcollectByte(ByteFunction<? super V> byteFunction, R target)<R extends MutableCharCollection>
RcollectChar(CharFunction<? super V> charFunction, R target)<R extends MutableDoubleCollection>
RcollectDouble(DoubleFunction<? super V> doubleFunction, R target)<R extends MutableFloatCollection>
RcollectFloat(FloatFunction<? super V> floatFunction, R target)<VV,R extends Collection<VV>>
RcollectIf(Predicate<? super V> predicate, Function<? super V,? extends VV> function, R target)<R extends MutableIntCollection>
RcollectInt(IntFunction<? super V> intFunction, R target)<R extends MutableLongCollection>
RcollectLong(LongFunction<? super V> longFunction, R target)<R extends MutableShortCollection>
RcollectShort(ShortFunction<? super V> shortFunction, R target)<P,VV,R extends Collection<VV>>
RcollectWith(Function2<? super V,? super P,? extends VV> function, P parameter, R targetCollection)booleancontains(Object object)booleancontainsAll(Collection<?> source)booleancontainsAllArguments(Object... elements)booleancontainsAllIterable(Iterable<?> source)booleancontainsKey(Object key)booleancontainsValue(Object value)intcount(Predicate<? super V> predicate)<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)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)voideach(Procedure<? super V> procedure)booleanequals(Object obj)<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)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(ObjectIntProcedure<? super V> objectIntProcedure)Vget(Object key)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)<VV,R extends MutableMultimap<VV,V>>
RgroupBy(Function<? super V,? extends VV> function, R target)<VV,R extends MutableMultimap<VV,V>>
RgroupByEach(Function<? super V,? extends Iterable<VV>> function, R target)<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)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()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)Vmin()Vmin(Comparator<? super V> comparator)<VV extends Comparable<? super VV>>
VminBy(Function<? super V,? extends VV> function)booleannoneSatisfy(Predicate<? super V> predicate)<P> booleannoneSatisfyWith(Predicate2<? super V,? super P> predicate, P parameter)booleannotEmpty()<R extends Collection<V>>
Rreject(Predicate<? super V> predicate, R target)<P,R extends Collection<V>>
RrejectWith(Predicate2<? super V,? super P> predicate, P parameter, R targetCollection)<R extends Collection<V>>
Rselect(Predicate<? super V> predicate, R target)<P,R extends Collection<V>>
RselectWith(Predicate2<? super V,? super P> predicate, P parameter, R targetCollection)intsize()doublesumOfDouble(DoubleFunction<? super V> function)doublesumOfFloat(FloatFunction<? super V> function)longsumOfInt(IntFunction<? super V> function)longsumOfLong(LongFunction<? super V> function)Object[]toArray()<T> T[]toArray(T[] a)MutableBag<V>toBag()<NK,NV>
MutableBiMap<NK,NV>toBiMap(Function<? super V,? extends NK> keyFunction, Function<? super V,? extends NV> valueFunction)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)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()RichIterable<V>valuesView()<S,R extends Collection<Pair<V,S>>>
Rzip(Iterable<S> that, R target)Deprecated.in 8.0.<R extends Collection<Pair<V,Integer>>>
RzipWithIndex(R target)Deprecated.in 8.0.-
Methods inherited from interface org.eclipse.collections.api.bimap.BiMap
collect, collectKeysUnique, collectValues, flip, flipUniqueValues, groupBy, groupByEach, groupByUniqueKey, inverse, partition, partitionWith, reject, reject, rejectWith, select, select, selectInstancesOf, selectWith, tap, toImmutable, zip, zipWithIndex
-
Methods inherited from interface org.eclipse.collections.api.InternalIterable
forEach
-
Methods inherited from interface org.eclipse.collections.api.map.MapIterable
aggregateBy, forEach, injectIntoKeyValue, parallelStream, spliterator, stream
-
Methods inherited from interface org.eclipse.collections.api.RichIterable
aggregateBy, aggregateBy, aggregateInPlaceBy, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectIf, collectInt, collectLong, collectShort, collectWith, containsAny, containsAnyIterable, containsBy, containsNone, containsNoneIterable, countBy, countBy, countByEach, countByEach, countByWith, countByWith, flatCollect, flatCollectWith, flatCollectWith, forEach, getAny, groupByAndCollect, injectIntoDouble, injectIntoFloat, injectIntoInt, injectIntoLong, makeString, maxByOptional, maxOptional, maxOptional, minByOptional, minOptional, minOptional, reduce, reduceBy, reduceBy, reduceInPlace, reduceInPlace, sumByDouble, sumByFloat, sumByInt, sumByLong, summarizeDouble, summarizeFloat, summarizeInt, summarizeLong, toImmutableBag, toImmutableBiMap, toImmutableList, toImmutableMap, toImmutableSet, toImmutableSortedBag, toImmutableSortedBag, toImmutableSortedBagBy, toImmutableSortedList, toImmutableSortedList, toImmutableSortedListBy, toImmutableSortedSet, toImmutableSortedSet, toImmutableSortedSetBy, toSortedBagBy, toSortedListBy, toSortedMapBy, toSortedSetBy
-
-
-
-
Method Detail
-
equals
public boolean equals(Object obj)
-
hashCode
public int hashCode()
-
size
public int size()
- Specified by:
sizein interfaceRichIterable<K>
-
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>
-
getIfAbsent
public V getIfAbsent(K key, Function0<? extends V> function)
- Specified by:
getIfAbsentin interfaceMapIterable<K,V>
-
getOrDefault
public V getOrDefault(Object key, V defaultValue)
- Specified by:
getOrDefaultin 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>
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmptyin interfaceRichIterable<K>
-
notEmpty
public boolean notEmpty()
- Specified by:
notEmptyin interfaceRichIterable<K>
-
contains
public boolean contains(Object object)
- Specified by:
containsin interfaceRichIterable<K>
-
containsKey
public boolean containsKey(Object key)
- Specified by:
containsKeyin interfaceMapIterable<K,V>
-
containsValue
public boolean containsValue(Object value)
- Specified by:
containsValuein interfaceMapIterable<K,V>
-
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>
-
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>
-
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>
-
toArray
public Object[] toArray()
- Specified by:
toArrayin interfaceRichIterable<K>
-
toArray
public <T> T[] toArray(T[] a)
- Specified by:
toArrayin interfaceRichIterable<K>
-
toString
public String toString()
- Specified by:
toStringin interfaceMapIterable<K,V>- Specified by:
toStringin interfaceRichIterable<K>- Overrides:
toStringin classObject
-
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>
-
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>
-
each
public void each(Procedure<? super V> procedure)
- Specified by:
eachin interfaceRichIterable<K>
-
forEachWithIndex
public void forEachWithIndex(ObjectIntProcedure<? super V> objectIntProcedure)
- Specified by:
forEachWithIndexin interfaceInternalIterable<K>
-
forEachWith
public <P> void forEachWith(Procedure2<? super V,? super P> procedure, P parameter)
- Specified by:
forEachWithin interfaceInternalIterable<K>
-
asLazy
public LazyIterable<V> asLazy()
- Specified by:
asLazyin 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>
-
min
public V min(Comparator<? super V> comparator)
- Specified by:
minin interfaceRichIterable<K>
-
min
public V min()
- Specified by:
minin interfaceRichIterable<K>
-
minBy
public <VV extends Comparable<? super VV>> V minBy(Function<? super V,? extends VV> function)
- Specified by:
minByin interfaceRichIterable<K>
-
max
public V max(Comparator<? super V> comparator)
- Specified by:
maxin interfaceRichIterable<K>
-
max
public V max()
- Specified by:
maxin interfaceRichIterable<K>
-
maxBy
public <VV extends Comparable<? super VV>> V maxBy(Function<? super V,? extends VV> function)
- Specified by:
maxByin interfaceRichIterable<K>
-
detect
public Pair<K,V> detect(Predicate2<? super K,? super V> predicate)
- Specified by:
detectin interfaceMapIterable<K,V>
-
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<Pair<K,V>> detectOptional(Predicate2<? super K,? super V> predicate)
- Specified by:
detectOptionalin interfaceMapIterable<K,V>
-
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>
-
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>
-
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>
-
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>
-
zip
@Deprecated public <S,R extends Collection<Pair<V,S>>> R zip(Iterable<S> that, R target)
Deprecated.in 8.0. UseOrderedIterable.zip(Iterable, Collection)instead.- Specified by:
zipin interfaceRichIterable<K>
-
zipWithIndex
@Deprecated public <R extends Collection<Pair<V,Integer>>> R zipWithIndex(R target)
Deprecated.in 8.0. UseOrderedIterable.zipWithIndex(Collection)instead.- Specified by:
zipWithIndexin interfaceRichIterable<K>
-
chunk
public RichIterable<RichIterable<V>> chunk(int size)
- Specified by:
chunkin 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>
-
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>
-
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>
-
-