Class IteratorIterate
- java.lang.Object
-
- org.eclipse.collections.impl.utility.internal.IteratorIterate
-
public final class IteratorIterate extends java.lang.Object
The IteratorIterate class implementations of the various iteration patterns for use with java.util.Iterator.
-
-
Constructor Summary
Constructors Modifier Constructor Description private
IteratorIterate()
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static <T> java.util.Iterator<T>
advanceIteratorTo(java.util.Iterator<T> iterator, int from)
static <T,K,V>
MutableMap<K,V>aggregateBy(java.util.Iterator<T> iterator, Function<? super T,? extends K> groupBy, Function0<? extends V> zeroValueFactory, Function2<? super V,? super T,? extends V> nonMutatingAggregator)
static <T,K,V>
MutableMap<K,V>aggregateBy(java.util.Iterator<T> iterator, Function<? super T,? extends K> groupBy, Function0<? extends V> zeroValueFactory, Procedure2<? super V,? super T> mutatingAggregator)
static <T> boolean
allSatisfy(java.util.Iterator<T> iterator, Predicate<? super T> predicate)
static <T,P>
booleanallSatisfyWith(java.util.Iterator<T> iterator, Predicate2<? super T,? super P> predicate, P parameter)
static <T> boolean
anySatisfy(java.util.Iterator<T> iterator, Predicate<? super T> predicate)
static <T,P>
booleananySatisfyWith(java.util.Iterator<T> iterator, Predicate2<? super T,? super P> predicate, P parameter)
static <T> RichIterable<RichIterable<T>>
chunk(java.util.Iterator<T> iterator, int size)
static <T,V,R extends java.util.Collection<V>>
Rcollect(java.util.Iterator<T> iterator, Function<? super T,? extends V> function, R targetCollection)
static <T> MutableBooleanCollection
collectBoolean(java.util.Iterator<T> iterator, BooleanFunction<? super T> booleanFunction)
static <T,R extends MutableBooleanCollection>
RcollectBoolean(java.util.Iterator<T> iterator, BooleanFunction<? super T> booleanFunction, R target)
static <T> MutableByteCollection
collectByte(java.util.Iterator<T> iterator, ByteFunction<? super T> byteFunction)
static <T,R extends MutableByteCollection>
RcollectByte(java.util.Iterator<T> iterator, ByteFunction<? super T> byteFunction, R target)
static <T> MutableCharCollection
collectChar(java.util.Iterator<T> iterator, CharFunction<? super T> charFunction)
static <T,R extends MutableCharCollection>
RcollectChar(java.util.Iterator<T> iterator, CharFunction<? super T> charFunction, R target)
static <T> MutableDoubleCollection
collectDouble(java.util.Iterator<T> iterator, DoubleFunction<? super T> doubleFunction)
static <T,R extends MutableDoubleCollection>
RcollectDouble(java.util.Iterator<T> iterator, DoubleFunction<? super T> doubleFunction, R target)
static <T> MutableFloatCollection
collectFloat(java.util.Iterator<T> iterator, FloatFunction<? super T> floatFunction)
static <T,R extends MutableFloatCollection>
RcollectFloat(java.util.Iterator<T> iterator, FloatFunction<? super T> floatFunction, R target)
static <T,V,R extends java.util.Collection<V>>
RcollectIf(java.util.Iterator<T> iterator, Predicate<? super T> predicate, Function<? super T,? extends V> function, R targetCollection)
static <T> MutableIntCollection
collectInt(java.util.Iterator<T> iterator, IntFunction<? super T> intFunction)
static <T,R extends MutableIntCollection>
RcollectInt(java.util.Iterator<T> iterator, IntFunction<? super T> intFunction, R target)
static <T> MutableLongCollection
collectLong(java.util.Iterator<T> iterator, LongFunction<? super T> longFunction)
static <T,R extends MutableLongCollection>
RcollectLong(java.util.Iterator<T> iterator, LongFunction<? super T> longFunction, R target)
static <T> MutableShortCollection
collectShort(java.util.Iterator<T> iterator, ShortFunction<? super T> shortFunction)
static <T,R extends MutableShortCollection>
RcollectShort(java.util.Iterator<T> iterator, ShortFunction<? super T> shortFunction, R target)
static <T,P,A,R extends java.util.Collection<A>>
RcollectWith(java.util.Iterator<T> iterator, Function2<? super T,? super P,? extends A> function, P parameter, R targetCollection)
static <T> int
count(java.util.Iterator<T> iterator, Predicate<? super T> predicate)
static <T,P>
intcountWith(java.util.Iterator<T> iterator, Predicate2<? super T,? super P> predicate, P parameter)
static <T> T
detect(java.util.Iterator<T> iterator, Predicate<? super T> predicate)
static <T> int
detectIndex(java.util.Iterator<T> iterator, Predicate<? super T> predicate)
static <T,IV>
intdetectIndexWith(java.util.Iterator<T> iterator, Predicate2<? super T,? super IV> predicate, IV injectedValue)
static <T> java.util.Optional<T>
detectOptional(java.util.Iterator<T> iterator, Predicate<? super T> predicate)
static <T,P>
TdetectWith(java.util.Iterator<T> iterator, Predicate2<? super T,? super P> predicate, P parameter)
static <T,P>
java.util.Optional<T>detectWithOptional(java.util.Iterator<T> iterator, Predicate2<? super T,? super P> predicate, P parameter)
static <T> MutableList<T>
distinct(java.util.Iterator<T> iterator)
static <T> MutableList<T>
distinct(java.util.Iterator<T> iterator, HashingStrategy<? super T> hashingStrategy)
static <T,R extends java.util.List<T>>
Rdistinct(java.util.Iterator<T> iterator, R targetCollection)
Deprecated.in 7.0.static <T,R extends MutableCollection<T>>
RdropWhile(java.util.Iterator<T> iterator, Predicate<? super T> predicate, R target)
static <T,V,R extends java.util.Collection<V>>
RflatCollect(java.util.Iterator<T> iterator, Function<? super T,? extends java.lang.Iterable<V>> function, R targetCollection)
static <T> void
forEach(java.util.Iterator<T> iterator, Procedure<? super T> procedure)
static <T,P>
voidforEachWith(java.util.Iterator<T> iterator, Procedure2<? super T,? super P> procedure, P parameter)
static <T> void
forEachWithIndex(java.util.Iterator<T> iterator, ObjectIntProcedure<? super T> objectIntProcedure)
static <T,V>
ImmutableMultimap<V,T>groupBy(java.util.Iterator<T> iterator, Function<? super T,? extends V> function)
static <T,V,R extends MutableMultimap<V,T>>
RgroupBy(java.util.Iterator<T> iterator, Function<? super T,? extends V> function, R target)
static <T,V,R extends MutableMultimap<V,T>>
RgroupByEach(java.util.Iterator<T> iterator, Function<? super T,? extends java.lang.Iterable<V>> function, R target)
static <K,T,R extends MutableMapIterable<K,T>>
RgroupByUniqueKey(java.util.Iterator<T> iterator, Function<? super T,? extends K> function, R target)
static <T> double
injectInto(double injectValue, java.util.Iterator<T> iterator, DoubleObjectToDoubleFunction<? super T> function)
static <T> float
injectInto(float injectValue, java.util.Iterator<T> iterator, FloatObjectToFloatFunction<? super T> function)
static <T> int
injectInto(int injectValue, java.util.Iterator<T> iterator, IntObjectToIntFunction<? super T> function)
static <T> long
injectInto(long injectValue, java.util.Iterator<T> iterator, LongObjectToLongFunction<? super T> function)
static <T,IV>
IVinjectInto(IV injectValue, java.util.Iterator<T> iterator, Function2<? super IV,? super T,? extends IV> function)
static <T,IV,P>
IVinjectIntoWith(IV injectValue, java.util.Iterator<T> iterator, Function3<? super IV,? super T,? super P,? extends IV> function, P parameter)
static <T> T
max(java.util.Iterator<T> iterator, java.util.Comparator<? super T> comparator)
static <T,V extends java.lang.Comparable<? super V>>
TmaxBy(java.util.Iterator<T> iterator, Function<? super T,? extends V> function)
static <T> T
min(java.util.Iterator<T> iterator, java.util.Comparator<? super T> comparator)
static <T,V extends java.lang.Comparable<? super V>>
TminBy(java.util.Iterator<T> iterator, Function<? super T,? extends V> function)
static <T> boolean
noneSatisfy(java.util.Iterator<T> iterator, Predicate<? super T> predicate)
static <T,P>
booleannoneSatisfyWith(java.util.Iterator<T> iterator, Predicate2<? super T,? super P> predicate, P parameter)
static <T> PartitionMutableList<T>
partition(java.util.Iterator<T> iterator, Predicate<? super T> predicate)
static <T,R extends PartitionMutableCollection<T>>
RpartitionWhile(java.util.Iterator<T> iterator, Predicate<? super T> predicate, R target)
static <T,P>
PartitionMutableList<T>partitionWith(java.util.Iterator<T> iterator, Predicate2<? super T,? super P> predicate, P parameter)
static <T,R extends java.util.Collection<T>>
Rreject(java.util.Iterator<T> iterator, Predicate<? super T> predicate, R targetCollection)
static <T,P,R extends java.util.Collection<T>>
RrejectWith(java.util.Iterator<T> iterator, Predicate2<? super T,? super P> predicate, P parameter, R targetCollection)
static <T> boolean
removeIf(java.util.Iterator<T> iterator, Predicate<? super T> predicate)
static <T> boolean
removeIf(java.util.Iterator<T> iterator, Predicate<? super T> predicate, Procedure<? super T> procedure)
static <T,P>
booleanremoveIfWith(java.util.Iterator<T> iterator, Predicate2<? super T,? super P> predicate, P parameter)
static <T,P>
booleanremoveIfWith(java.util.Iterator<T> iterator, Predicate2<? super T,? super P> predicate, P parameter, Procedure<? super T> procedure)
static <T,R extends java.util.Collection<T>>
Rselect(java.util.Iterator<T> iterator, Predicate<? super T> predicate, R targetCollection)
static <T,P>
Twin<MutableList<T>>selectAndRejectWith(java.util.Iterator<T> iterator, Predicate2<? super T,? super P> predicate, P parameter)
static <T,R extends java.util.Collection<T>>
RselectInstancesOf(java.util.Iterator<?> iterator, java.lang.Class<T> clazz, R targetCollection)
static <T,P,R extends java.util.Collection<T>>
RselectWith(java.util.Iterator<T> iterator, Predicate2<? super T,? super P> predicate, P injectedValue, R targetCollection)
static <T> boolean
shortCircuit(java.util.Iterator<T> iterator, Predicate<? super T> predicate, boolean expected, boolean onShortCircuit, boolean atEnd)
static <T,P>
booleanshortCircuitWith(java.util.Iterator<T> iterator, Predicate2<? super T,? super P> predicate2, P parameter, boolean expected, boolean onShortCircuit, boolean atEnd)
static <V,T>
MutableMap<V,java.math.BigDecimal>sumByBigDecimal(java.util.Iterator<T> iterator, Function<? super T,? extends V> groupBy, Function<? super T,java.math.BigDecimal> function)
static <V,T>
MutableMap<V,java.math.BigInteger>sumByBigInteger(java.util.Iterator<T> iterator, Function<? super T,? extends V> groupBy, Function<? super T,java.math.BigInteger> function)
static <T> java.math.BigDecimal
sumOfBigDecimal(java.util.Iterator<T> iterator, Function<? super T,java.math.BigDecimal> function)
static <T> java.math.BigInteger
sumOfBigInteger(java.util.Iterator<T> iterator, Function<? super T,java.math.BigInteger> function)
static <T> double
sumOfDouble(java.util.Iterator<T> iterator, DoubleFunction<? super T> function)
static <T> double
sumOfFloat(java.util.Iterator<T> iterator, FloatFunction<? super T> function)
static <T> long
sumOfInt(java.util.Iterator<T> iterator, IntFunction<? super T> function)
static <T> long
sumOfLong(java.util.Iterator<T> iterator, LongFunction<? super T> function)
static <T,R extends MutableCollection<T>>
RtakeWhile(java.util.Iterator<T> iterator, Predicate<? super T> predicate, R target)
static <X,Y,R extends java.util.Collection<Pair<X,Y>>>
Rzip(java.util.Iterator<X> xs, java.util.Iterator<Y> ys, R target)
static <T,R extends java.util.Collection<Pair<T,java.lang.Integer>>>
RzipWithIndex(java.util.Iterator<T> iterator, R target)
-
-
-
Method Detail
-
selectAndRejectWith
public static <T,P> Twin<MutableList<T>> selectAndRejectWith(java.util.Iterator<T> iterator, Predicate2<? super T,? super P> predicate, P parameter)
-
partition
public static <T> PartitionMutableList<T> partition(java.util.Iterator<T> iterator, Predicate<? super T> predicate)
- See Also:
Iterate.partition(Iterable, Predicate)
-
partitionWith
public static <T,P> PartitionMutableList<T> partitionWith(java.util.Iterator<T> iterator, Predicate2<? super T,? super P> predicate, P parameter)
- Since:
- 5.0
- See Also:
Iterate.partitionWith(Iterable, Predicate2, Object)
-
partitionWhile
public static <T,R extends PartitionMutableCollection<T>> R partitionWhile(java.util.Iterator<T> iterator, Predicate<? super T> predicate, R target)
-
takeWhile
public static <T,R extends MutableCollection<T>> R takeWhile(java.util.Iterator<T> iterator, Predicate<? super T> predicate, R target)
-
dropWhile
public static <T,R extends MutableCollection<T>> R dropWhile(java.util.Iterator<T> iterator, Predicate<? super T> predicate, R target)
-
count
public static <T> int count(java.util.Iterator<T> iterator, Predicate<? super T> predicate)
- See Also:
Iterate.count(Iterable, Predicate)
-
countWith
public static <T,P> int countWith(java.util.Iterator<T> iterator, Predicate2<? super T,? super P> predicate, P parameter)
-
select
public static <T,R extends java.util.Collection<T>> R select(java.util.Iterator<T> iterator, Predicate<? super T> predicate, R targetCollection)
-
selectWith
public static <T,P,R extends java.util.Collection<T>> R selectWith(java.util.Iterator<T> iterator, Predicate2<? super T,? super P> predicate, P injectedValue, R targetCollection)
-
selectInstancesOf
public static <T,R extends java.util.Collection<T>> R selectInstancesOf(java.util.Iterator<?> iterator, java.lang.Class<T> clazz, R targetCollection)
-
collectIf
public static <T,V,R extends java.util.Collection<V>> R collectIf(java.util.Iterator<T> iterator, Predicate<? super T> predicate, Function<? super T,? extends V> function, R targetCollection)
-
reject
public static <T,R extends java.util.Collection<T>> R reject(java.util.Iterator<T> iterator, Predicate<? super T> predicate, R targetCollection)
-
rejectWith
public static <T,P,R extends java.util.Collection<T>> R rejectWith(java.util.Iterator<T> iterator, Predicate2<? super T,? super P> predicate, P parameter, R targetCollection)
-
collect
public static <T,V,R extends java.util.Collection<V>> R collect(java.util.Iterator<T> iterator, Function<? super T,? extends V> function, R targetCollection)
-
collectBoolean
public static <T> MutableBooleanCollection collectBoolean(java.util.Iterator<T> iterator, BooleanFunction<? super T> booleanFunction)
-
collectBoolean
public static <T,R extends MutableBooleanCollection> R collectBoolean(java.util.Iterator<T> iterator, BooleanFunction<? super T> booleanFunction, R target)
-
collectByte
public static <T> MutableByteCollection collectByte(java.util.Iterator<T> iterator, ByteFunction<? super T> byteFunction)
-
collectByte
public static <T,R extends MutableByteCollection> R collectByte(java.util.Iterator<T> iterator, ByteFunction<? super T> byteFunction, R target)
-
collectChar
public static <T> MutableCharCollection collectChar(java.util.Iterator<T> iterator, CharFunction<? super T> charFunction)
-
collectChar
public static <T,R extends MutableCharCollection> R collectChar(java.util.Iterator<T> iterator, CharFunction<? super T> charFunction, R target)
-
collectDouble
public static <T> MutableDoubleCollection collectDouble(java.util.Iterator<T> iterator, DoubleFunction<? super T> doubleFunction)
-
collectDouble
public static <T,R extends MutableDoubleCollection> R collectDouble(java.util.Iterator<T> iterator, DoubleFunction<? super T> doubleFunction, R target)
-
collectFloat
public static <T> MutableFloatCollection collectFloat(java.util.Iterator<T> iterator, FloatFunction<? super T> floatFunction)
-
collectFloat
public static <T,R extends MutableFloatCollection> R collectFloat(java.util.Iterator<T> iterator, FloatFunction<? super T> floatFunction, R target)
-
collectInt
public static <T> MutableIntCollection collectInt(java.util.Iterator<T> iterator, IntFunction<? super T> intFunction)
-
collectInt
public static <T,R extends MutableIntCollection> R collectInt(java.util.Iterator<T> iterator, IntFunction<? super T> intFunction, R target)
-
collectLong
public static <T> MutableLongCollection collectLong(java.util.Iterator<T> iterator, LongFunction<? super T> longFunction)
-
collectLong
public static <T,R extends MutableLongCollection> R collectLong(java.util.Iterator<T> iterator, LongFunction<? super T> longFunction, R target)
-
collectShort
public static <T> MutableShortCollection collectShort(java.util.Iterator<T> iterator, ShortFunction<? super T> shortFunction)
-
collectShort
public static <T,R extends MutableShortCollection> R collectShort(java.util.Iterator<T> iterator, ShortFunction<? super T> shortFunction, R target)
-
flatCollect
public static <T,V,R extends java.util.Collection<V>> R flatCollect(java.util.Iterator<T> iterator, Function<? super T,? extends java.lang.Iterable<V>> function, R targetCollection)
-
forEach
public static <T> void forEach(java.util.Iterator<T> iterator, Procedure<? super T> procedure)
- See Also:
Iterate.forEach(Iterable, Procedure)
-
forEachWithIndex
public static <T> void forEachWithIndex(java.util.Iterator<T> iterator, ObjectIntProcedure<? super T> objectIntProcedure)
-
detect
public static <T> T detect(java.util.Iterator<T> iterator, Predicate<? super T> predicate)
- See Also:
Iterate.detect(Iterable, Predicate)
-
detectWith
public static <T,P> T detectWith(java.util.Iterator<T> iterator, Predicate2<? super T,? super P> predicate, P parameter)
-
detectOptional
public static <T> java.util.Optional<T> detectOptional(java.util.Iterator<T> iterator, Predicate<? super T> predicate)
-
detectWithOptional
public static <T,P> java.util.Optional<T> detectWithOptional(java.util.Iterator<T> iterator, Predicate2<? super T,? super P> predicate, P parameter)
-
injectInto
public static <T,IV> IV injectInto(IV injectValue, java.util.Iterator<T> iterator, Function2<? super IV,? super T,? extends IV> function)
-
injectInto
public static <T> int injectInto(int injectValue, java.util.Iterator<T> iterator, IntObjectToIntFunction<? super T> function)
-
injectInto
public static <T> long injectInto(long injectValue, java.util.Iterator<T> iterator, LongObjectToLongFunction<? super T> function)
-
injectInto
public static <T> double injectInto(double injectValue, java.util.Iterator<T> iterator, DoubleObjectToDoubleFunction<? super T> function)
-
injectInto
public static <T> float injectInto(float injectValue, java.util.Iterator<T> iterator, FloatObjectToFloatFunction<? super T> function)
-
injectIntoWith
public static <T,IV,P> IV injectIntoWith(IV injectValue, java.util.Iterator<T> iterator, Function3<? super IV,? super T,? super P,? extends IV> function, P parameter)
-
shortCircuit
public static <T> boolean shortCircuit(java.util.Iterator<T> iterator, Predicate<? super T> predicate, boolean expected, boolean onShortCircuit, boolean atEnd)
-
shortCircuitWith
public static <T,P> boolean shortCircuitWith(java.util.Iterator<T> iterator, Predicate2<? super T,? super P> predicate2, P parameter, boolean expected, boolean onShortCircuit, boolean atEnd)
-
anySatisfy
public static <T> boolean anySatisfy(java.util.Iterator<T> iterator, Predicate<? super T> predicate)
- See Also:
Iterate.anySatisfy(Iterable, Predicate)
-
anySatisfyWith
public static <T,P> boolean anySatisfyWith(java.util.Iterator<T> iterator, Predicate2<? super T,? super P> predicate, P parameter)
-
allSatisfy
public static <T> boolean allSatisfy(java.util.Iterator<T> iterator, Predicate<? super T> predicate)
- See Also:
Iterate.allSatisfy(Iterable, Predicate)
-
allSatisfyWith
public static <T,P> boolean allSatisfyWith(java.util.Iterator<T> iterator, Predicate2<? super T,? super P> predicate, P parameter)
-
noneSatisfy
public static <T> boolean noneSatisfy(java.util.Iterator<T> iterator, Predicate<? super T> predicate)
- See Also:
Iterate.noneSatisfy(Iterable, Predicate)
-
noneSatisfyWith
public static <T,P> boolean noneSatisfyWith(java.util.Iterator<T> iterator, Predicate2<? super T,? super P> predicate, P parameter)
-
removeIf
public static <T> boolean removeIf(java.util.Iterator<T> iterator, Predicate<? super T> predicate)
- See Also:
Iterate.removeIf(Iterable, Predicate)
-
removeIfWith
public static <T,P> boolean removeIfWith(java.util.Iterator<T> iterator, Predicate2<? super T,? super P> predicate, P parameter)
-
removeIf
public static <T> boolean removeIf(java.util.Iterator<T> iterator, Predicate<? super T> predicate, Procedure<? super T> procedure)
-
removeIfWith
public static <T,P> boolean removeIfWith(java.util.Iterator<T> iterator, Predicate2<? super T,? super P> predicate, P parameter, Procedure<? super T> procedure)
-
detectIndex
public static <T> int detectIndex(java.util.Iterator<T> iterator, Predicate<? super T> predicate)
- See Also:
Iterate.detectIndex(Iterable, Predicate)
-
detectIndexWith
public static <T,IV> int detectIndexWith(java.util.Iterator<T> iterator, Predicate2<? super T,? super IV> predicate, IV injectedValue)
-
forEachWith
public static <T,P> void forEachWith(java.util.Iterator<T> iterator, Procedure2<? super T,? super P> procedure, P parameter)
-
collectWith
public static <T,P,A,R extends java.util.Collection<A>> R collectWith(java.util.Iterator<T> iterator, Function2<? super T,? super P,? extends A> function, P parameter, R targetCollection)
-
groupBy
public static <T,V> ImmutableMultimap<V,T> groupBy(java.util.Iterator<T> iterator, Function<? super T,? extends V> function)
- See Also:
Iterate.groupBy(Iterable, Function)
-
groupBy
public static <T,V,R extends MutableMultimap<V,T>> R groupBy(java.util.Iterator<T> iterator, Function<? super T,? extends V> function, R target)
-
groupByEach
public static <T,V,R extends MutableMultimap<V,T>> R groupByEach(java.util.Iterator<T> iterator, Function<? super T,? extends java.lang.Iterable<V>> function, R target)
-
groupByUniqueKey
public static <K,T,R extends MutableMapIterable<K,T>> R groupByUniqueKey(java.util.Iterator<T> iterator, Function<? super T,? extends K> function, R target)
-
distinct
@Deprecated public static <T,R extends java.util.List<T>> R distinct(java.util.Iterator<T> iterator, R targetCollection)
Deprecated.in 7.0.
-
distinct
public static <T> MutableList<T> distinct(java.util.Iterator<T> iterator)
- Since:
- 7.0.
-
distinct
public static <T> MutableList<T> distinct(java.util.Iterator<T> iterator, HashingStrategy<? super T> hashingStrategy)
- Since:
- 7.0.
-
zip
public static <X,Y,R extends java.util.Collection<Pair<X,Y>>> R zip(java.util.Iterator<X> xs, java.util.Iterator<Y> ys, R target)
-
zipWithIndex
public static <T,R extends java.util.Collection<Pair<T,java.lang.Integer>>> R zipWithIndex(java.util.Iterator<T> iterator, R target)
-
chunk
public static <T> RichIterable<RichIterable<T>> chunk(java.util.Iterator<T> iterator, int size)
- See Also:
Iterate.chunk(Iterable, int)
-
min
public static <T> T min(java.util.Iterator<T> iterator, java.util.Comparator<? super T> comparator)
- See Also:
Iterate.min(Iterable, Comparator)
-
max
public static <T> T max(java.util.Iterator<T> iterator, java.util.Comparator<? super T> comparator)
- See Also:
Iterate.max(Iterable, Comparator)
-
advanceIteratorTo
public static <T> java.util.Iterator<T> advanceIteratorTo(java.util.Iterator<T> iterator, int from)
-
sumOfInt
public static <T> long sumOfInt(java.util.Iterator<T> iterator, IntFunction<? super T> function)
-
sumOfLong
public static <T> long sumOfLong(java.util.Iterator<T> iterator, LongFunction<? super T> function)
-
sumOfFloat
public static <T> double sumOfFloat(java.util.Iterator<T> iterator, FloatFunction<? super T> function)
-
sumOfDouble
public static <T> double sumOfDouble(java.util.Iterator<T> iterator, DoubleFunction<? super T> function)
-
sumOfBigDecimal
public static <T> java.math.BigDecimal sumOfBigDecimal(java.util.Iterator<T> iterator, Function<? super T,java.math.BigDecimal> function)
-
sumOfBigInteger
public static <T> java.math.BigInteger sumOfBigInteger(java.util.Iterator<T> iterator, Function<? super T,java.math.BigInteger> function)
-
sumByBigDecimal
public static <V,T> MutableMap<V,java.math.BigDecimal> sumByBigDecimal(java.util.Iterator<T> iterator, Function<? super T,? extends V> groupBy, Function<? super T,java.math.BigDecimal> function)
-
sumByBigInteger
public static <V,T> MutableMap<V,java.math.BigInteger> sumByBigInteger(java.util.Iterator<T> iterator, Function<? super T,? extends V> groupBy, Function<? super T,java.math.BigInteger> function)
-
aggregateBy
public static <T,K,V> MutableMap<K,V> aggregateBy(java.util.Iterator<T> iterator, Function<? super T,? extends K> groupBy, Function0<? extends V> zeroValueFactory, Procedure2<? super V,? super T> mutatingAggregator)
-
aggregateBy
public static <T,K,V> MutableMap<K,V> aggregateBy(java.util.Iterator<T> iterator, Function<? super T,? extends K> groupBy, Function0<? extends V> zeroValueFactory, Function2<? super V,? super T,? extends V> nonMutatingAggregator)
-
minBy
public static <T,V extends java.lang.Comparable<? super V>> T minBy(java.util.Iterator<T> iterator, Function<? super T,? extends V> function)
-
maxBy
public static <T,V extends java.lang.Comparable<? super V>> T maxBy(java.util.Iterator<T> iterator, Function<? super T,? extends V> function)
-
-