public final class IteratorIterate
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static <T> java.util.Iterator<T> |
advanceIteratorTo(java.util.Iterator<T> iterator,
int from) |
static <T,K,V> com.gs.collections.api.map.MutableMap<K,V> |
aggregateBy(java.util.Iterator<T> iterator,
com.gs.collections.api.block.function.Function<? super T,? extends K> groupBy,
com.gs.collections.api.block.function.Function0<? extends V> zeroValueFactory,
com.gs.collections.api.block.function.Function2<? super V,? super T,? extends V> nonMutatingAggregator) |
static <T,K,V> com.gs.collections.api.map.MutableMap<K,V> |
aggregateBy(java.util.Iterator<T> iterator,
com.gs.collections.api.block.function.Function<? super T,? extends K> groupBy,
com.gs.collections.api.block.function.Function0<? extends V> zeroValueFactory,
com.gs.collections.api.block.procedure.Procedure2<? super V,? super T> mutatingAggregator) |
static <T> boolean |
allSatisfy(java.util.Iterator<T> iterator,
com.gs.collections.api.block.predicate.Predicate<? super T> predicate) |
static <T,P> boolean |
allSatisfyWith(java.util.Iterator<T> iterator,
com.gs.collections.api.block.predicate.Predicate2<? super T,? super P> predicate,
P parameter) |
static <T> boolean |
anySatisfy(java.util.Iterator<T> iterator,
com.gs.collections.api.block.predicate.Predicate<? super T> predicate) |
static <T,P> boolean |
anySatisfyWith(java.util.Iterator<T> iterator,
com.gs.collections.api.block.predicate.Predicate2<? super T,? super P> predicate,
P parameter) |
static <T> com.gs.collections.api.RichIterable<com.gs.collections.api.RichIterable<T>> |
chunk(java.util.Iterator<T> iterator,
int size) |
static <T,V,R extends java.util.Collection<V>> |
collect(java.util.Iterator<T> iterator,
com.gs.collections.api.block.function.Function<? super T,? extends V> function,
R targetCollection) |
static <T> com.gs.collections.api.collection.primitive.MutableBooleanCollection |
collectBoolean(java.util.Iterator<T> iterator,
com.gs.collections.api.block.function.primitive.BooleanFunction<? super T> booleanFunction) |
static <T,R extends com.gs.collections.api.collection.primitive.MutableBooleanCollection> |
collectBoolean(java.util.Iterator<T> iterator,
com.gs.collections.api.block.function.primitive.BooleanFunction<? super T> booleanFunction,
R target) |
static <T> com.gs.collections.api.collection.primitive.MutableByteCollection |
collectByte(java.util.Iterator<T> iterator,
com.gs.collections.api.block.function.primitive.ByteFunction<? super T> byteFunction) |
static <T,R extends com.gs.collections.api.collection.primitive.MutableByteCollection> |
collectByte(java.util.Iterator<T> iterator,
com.gs.collections.api.block.function.primitive.ByteFunction<? super T> byteFunction,
R target) |
static <T> com.gs.collections.api.collection.primitive.MutableCharCollection |
collectChar(java.util.Iterator<T> iterator,
com.gs.collections.api.block.function.primitive.CharFunction<? super T> charFunction) |
static <T,R extends com.gs.collections.api.collection.primitive.MutableCharCollection> |
collectChar(java.util.Iterator<T> iterator,
com.gs.collections.api.block.function.primitive.CharFunction<? super T> charFunction,
R target) |
static <T> com.gs.collections.api.collection.primitive.MutableDoubleCollection |
collectDouble(java.util.Iterator<T> iterator,
com.gs.collections.api.block.function.primitive.DoubleFunction<? super T> doubleFunction) |
static <T,R extends com.gs.collections.api.collection.primitive.MutableDoubleCollection> |
collectDouble(java.util.Iterator<T> iterator,
com.gs.collections.api.block.function.primitive.DoubleFunction<? super T> doubleFunction,
R target) |
static <T> com.gs.collections.api.collection.primitive.MutableFloatCollection |
collectFloat(java.util.Iterator<T> iterator,
com.gs.collections.api.block.function.primitive.FloatFunction<? super T> floatFunction) |
static <T,R extends com.gs.collections.api.collection.primitive.MutableFloatCollection> |
collectFloat(java.util.Iterator<T> iterator,
com.gs.collections.api.block.function.primitive.FloatFunction<? super T> floatFunction,
R target) |
static <T,V,R extends java.util.Collection<V>> |
collectIf(java.util.Iterator<T> iterator,
com.gs.collections.api.block.predicate.Predicate<? super T> predicate,
com.gs.collections.api.block.function.Function<? super T,? extends V> function,
R targetCollection) |
static <T> com.gs.collections.api.collection.primitive.MutableIntCollection |
collectInt(java.util.Iterator<T> iterator,
com.gs.collections.api.block.function.primitive.IntFunction<? super T> intFunction) |
static <T,R extends com.gs.collections.api.collection.primitive.MutableIntCollection> |
collectInt(java.util.Iterator<T> iterator,
com.gs.collections.api.block.function.primitive.IntFunction<? super T> intFunction,
R target) |
static <T> com.gs.collections.api.collection.primitive.MutableLongCollection |
collectLong(java.util.Iterator<T> iterator,
com.gs.collections.api.block.function.primitive.LongFunction<? super T> longFunction) |
static <T,R extends com.gs.collections.api.collection.primitive.MutableLongCollection> |
collectLong(java.util.Iterator<T> iterator,
com.gs.collections.api.block.function.primitive.LongFunction<? super T> longFunction,
R target) |
static <T> com.gs.collections.api.collection.primitive.MutableShortCollection |
collectShort(java.util.Iterator<T> iterator,
com.gs.collections.api.block.function.primitive.ShortFunction<? super T> shortFunction) |
static <T,R extends com.gs.collections.api.collection.primitive.MutableShortCollection> |
collectShort(java.util.Iterator<T> iterator,
com.gs.collections.api.block.function.primitive.ShortFunction<? super T> shortFunction,
R target) |
static <T,P,A,R extends java.util.Collection<A>> |
collectWith(java.util.Iterator<T> iterator,
com.gs.collections.api.block.function.Function2<? super T,? super P,? extends A> function,
P parameter,
R targetCollection) |
static <T> int |
count(java.util.Iterator<T> iterator,
com.gs.collections.api.block.predicate.Predicate<? super T> predicate) |
static <T,P> int |
countWith(java.util.Iterator<T> iterator,
com.gs.collections.api.block.predicate.Predicate2<? super T,? super P> predicate,
P parameter) |
static <T> T |
detect(java.util.Iterator<T> iterator,
com.gs.collections.api.block.predicate.Predicate<? super T> predicate) |
static <T> int |
detectIndex(java.util.Iterator<T> iterator,
com.gs.collections.api.block.predicate.Predicate<? super T> predicate) |
static <T,IV> int |
detectIndexWith(java.util.Iterator<T> iterator,
com.gs.collections.api.block.predicate.Predicate2<? super T,? super IV> predicate,
IV injectedValue) |
static <T,P> T |
detectWith(java.util.Iterator<T> iterator,
com.gs.collections.api.block.predicate.Predicate2<? super T,? super P> predicate,
P parameter) |
static <T> com.gs.collections.api.list.MutableList<T> |
distinct(java.util.Iterator<T> iterator) |
static <T> com.gs.collections.api.list.MutableList<T> |
distinct(java.util.Iterator<T> iterator,
com.gs.collections.api.block.HashingStrategy<? super T> hashingStrategy) |
static <T,R extends java.util.List<T>> |
distinct(java.util.Iterator<T> iterator,
R targetCollection)
Deprecated.
in 7.0.
|
static <T,R extends com.gs.collections.api.collection.MutableCollection<T>> |
dropWhile(java.util.Iterator<T> iterator,
com.gs.collections.api.block.predicate.Predicate<? super T> predicate,
R target) |
static <T,V,R extends java.util.Collection<V>> |
flatCollect(java.util.Iterator<T> iterator,
com.gs.collections.api.block.function.Function<? super T,? extends java.lang.Iterable<V>> function,
R targetCollection) |
static <T> void |
forEach(java.util.Iterator<T> iterator,
com.gs.collections.api.block.procedure.Procedure<? super T> procedure) |
static <T,P> void |
forEachWith(java.util.Iterator<T> iterator,
com.gs.collections.api.block.procedure.Procedure2<? super T,? super P> procedure,
P parameter) |
static <T> void |
forEachWithIndex(java.util.Iterator<T> iterator,
com.gs.collections.api.block.procedure.primitive.ObjectIntProcedure<? super T> objectIntProcedure) |
static <T,V> com.gs.collections.api.multimap.ImmutableMultimap<V,T> |
groupBy(java.util.Iterator<T> iterator,
com.gs.collections.api.block.function.Function<? super T,? extends V> function) |
static <T,V,R extends com.gs.collections.api.multimap.MutableMultimap<V,T>> |
groupBy(java.util.Iterator<T> iterator,
com.gs.collections.api.block.function.Function<? super T,? extends V> function,
R target) |
static <T,V,R extends com.gs.collections.api.multimap.MutableMultimap<V,T>> |
groupByEach(java.util.Iterator<T> iterator,
com.gs.collections.api.block.function.Function<? super T,? extends java.lang.Iterable<V>> function,
R target) |
static <K,T,R extends com.gs.collections.api.map.MutableMap<K,T>> |
groupByUniqueKey(java.util.Iterator<T> iterator,
com.gs.collections.api.block.function.Function<? super T,? extends K> function,
R target) |
static <T> double |
injectInto(double injectValue,
java.util.Iterator<T> iterator,
com.gs.collections.api.block.function.primitive.DoubleObjectToDoubleFunction<? super T> function) |
static <T> float |
injectInto(float injectValue,
java.util.Iterator<T> iterator,
com.gs.collections.api.block.function.primitive.FloatObjectToFloatFunction<? super T> function) |
static <T> int |
injectInto(int injectValue,
java.util.Iterator<T> iterator,
com.gs.collections.api.block.function.primitive.IntObjectToIntFunction<? super T> function) |
static <T,IV> IV |
injectInto(IV injectValue,
java.util.Iterator<T> iterator,
com.gs.collections.api.block.function.Function2<? super IV,? super T,? extends IV> function) |
static <T> long |
injectInto(long injectValue,
java.util.Iterator<T> iterator,
com.gs.collections.api.block.function.primitive.LongObjectToLongFunction<? super T> function) |
static <T,IV,P> IV |
injectIntoWith(IV injectValue,
java.util.Iterator<T> iterator,
com.gs.collections.api.block.function.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>> |
maxBy(java.util.Iterator<T> iterator,
com.gs.collections.api.block.function.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>> |
minBy(java.util.Iterator<T> iterator,
com.gs.collections.api.block.function.Function<? super T,? extends V> function) |
static <T> boolean |
noneSatisfy(java.util.Iterator<T> iterator,
com.gs.collections.api.block.predicate.Predicate<? super T> predicate) |
static <T,P> boolean |
noneSatisfyWith(java.util.Iterator<T> iterator,
com.gs.collections.api.block.predicate.Predicate2<? super T,? super P> predicate,
P parameter) |
static <T> com.gs.collections.api.partition.list.PartitionMutableList<T> |
partition(java.util.Iterator<T> iterator,
com.gs.collections.api.block.predicate.Predicate<? super T> predicate) |
static <T,R extends com.gs.collections.api.partition.PartitionMutableCollection<T>> |
partitionWhile(java.util.Iterator<T> iterator,
com.gs.collections.api.block.predicate.Predicate<? super T> predicate,
R target) |
static <T,P> com.gs.collections.api.partition.list.PartitionMutableList<T> |
partitionWith(java.util.Iterator<T> iterator,
com.gs.collections.api.block.predicate.Predicate2<? super T,? super P> predicate,
P parameter) |
static <T,R extends java.util.Collection<T>> |
reject(java.util.Iterator<T> iterator,
com.gs.collections.api.block.predicate.Predicate<? super T> predicate,
R targetCollection) |
static <T,P,R extends java.util.Collection<T>> |
rejectWith(java.util.Iterator<T> iterator,
com.gs.collections.api.block.predicate.Predicate2<? super T,? super P> predicate,
P parameter,
R targetCollection) |
static <T> boolean |
removeIf(java.util.Iterator<T> iterator,
com.gs.collections.api.block.predicate.Predicate<? super T> predicate) |
static <T> boolean |
removeIf(java.util.Iterator<T> iterator,
com.gs.collections.api.block.predicate.Predicate<? super T> predicate,
com.gs.collections.api.block.procedure.Procedure<? super T> procedure) |
static <T,P> boolean |
removeIfWith(java.util.Iterator<T> iterator,
com.gs.collections.api.block.predicate.Predicate2<? super T,? super P> predicate,
P parameter) |
static <T,P> boolean |
removeIfWith(java.util.Iterator<T> iterator,
com.gs.collections.api.block.predicate.Predicate2<? super T,? super P> predicate,
P parameter,
com.gs.collections.api.block.procedure.Procedure<? super T> procedure) |
static <T,R extends java.util.Collection<T>> |
select(java.util.Iterator<T> iterator,
com.gs.collections.api.block.predicate.Predicate<? super T> predicate,
R targetCollection) |
static <T,P> com.gs.collections.api.tuple.Twin<com.gs.collections.api.list.MutableList<T>> |
selectAndRejectWith(java.util.Iterator<T> iterator,
com.gs.collections.api.block.predicate.Predicate2<? super T,? super P> predicate,
P parameter) |
static <T,R extends java.util.Collection<T>> |
selectInstancesOf(java.util.Iterator<?> iterator,
java.lang.Class<T> clazz,
R targetCollection) |
static <T,P,R extends java.util.Collection<T>> |
selectWith(java.util.Iterator<T> iterator,
com.gs.collections.api.block.predicate.Predicate2<? super T,? super P> predicate,
P injectedValue,
R targetCollection) |
static <T> boolean |
shortCircuit(java.util.Iterator<T> iterator,
com.gs.collections.api.block.predicate.Predicate<? super T> predicate,
boolean expected,
boolean onShortCircuit,
boolean atEnd) |
static <T,P> boolean |
shortCircuitWith(java.util.Iterator<T> iterator,
com.gs.collections.api.block.predicate.Predicate2<? super T,? super P> predicate2,
P parameter,
boolean expected,
boolean onShortCircuit,
boolean atEnd) |
static <V,T> com.gs.collections.api.map.MutableMap<V,java.math.BigDecimal> |
sumByBigDecimal(java.util.Iterator<T> iterator,
com.gs.collections.api.block.function.Function<T,V> groupBy,
com.gs.collections.api.block.function.Function<? super T,java.math.BigDecimal> function) |
static <V,T> com.gs.collections.api.map.MutableMap<V,java.math.BigInteger> |
sumByBigInteger(java.util.Iterator<T> iterator,
com.gs.collections.api.block.function.Function<T,V> groupBy,
com.gs.collections.api.block.function.Function<? super T,java.math.BigInteger> function) |
static <T> java.math.BigDecimal |
sumOfBigDecimal(java.util.Iterator<T> iterator,
com.gs.collections.api.block.function.Function<? super T,java.math.BigDecimal> function) |
static <T> java.math.BigInteger |
sumOfBigInteger(java.util.Iterator<T> iterator,
com.gs.collections.api.block.function.Function<? super T,java.math.BigInteger> function) |
static <T> double |
sumOfDouble(java.util.Iterator<T> iterator,
com.gs.collections.api.block.function.primitive.DoubleFunction<? super T> function) |
static <T> double |
sumOfFloat(java.util.Iterator<T> iterator,
com.gs.collections.api.block.function.primitive.FloatFunction<? super T> function) |
static <T> long |
sumOfInt(java.util.Iterator<T> iterator,
com.gs.collections.api.block.function.primitive.IntFunction<? super T> function) |
static <T> long |
sumOfLong(java.util.Iterator<T> iterator,
com.gs.collections.api.block.function.primitive.LongFunction<? super T> function) |
static <T,R extends com.gs.collections.api.collection.MutableCollection<T>> |
takeWhile(java.util.Iterator<T> iterator,
com.gs.collections.api.block.predicate.Predicate<? super T> predicate,
R target) |
static <X,Y,R extends java.util.Collection<com.gs.collections.api.tuple.Pair<X,Y>>> |
zip(java.util.Iterator<X> xs,
java.util.Iterator<Y> ys,
R target) |
static <T,R extends java.util.Collection<com.gs.collections.api.tuple.Pair<T,java.lang.Integer>>> |
zipWithIndex(java.util.Iterator<T> iterator,
R target) |
public static <T,P> com.gs.collections.api.tuple.Twin<com.gs.collections.api.list.MutableList<T>> selectAndRejectWith(java.util.Iterator<T> iterator,
com.gs.collections.api.block.predicate.Predicate2<? super T,? super P> predicate,
P parameter)
public static <T> com.gs.collections.api.partition.list.PartitionMutableList<T> partition(java.util.Iterator<T> iterator,
com.gs.collections.api.block.predicate.Predicate<? super T> predicate)
public static <T,P> com.gs.collections.api.partition.list.PartitionMutableList<T> partitionWith(java.util.Iterator<T> iterator,
com.gs.collections.api.block.predicate.Predicate2<? super T,? super P> predicate,
P parameter)
Iterate.partitionWith(Iterable, Predicate2, Object)public static <T,R extends com.gs.collections.api.partition.PartitionMutableCollection<T>> R partitionWhile(java.util.Iterator<T> iterator,
com.gs.collections.api.block.predicate.Predicate<? super T> predicate,
R target)
public static <T,R extends com.gs.collections.api.collection.MutableCollection<T>> R takeWhile(java.util.Iterator<T> iterator,
com.gs.collections.api.block.predicate.Predicate<? super T> predicate,
R target)
public static <T,R extends com.gs.collections.api.collection.MutableCollection<T>> R dropWhile(java.util.Iterator<T> iterator,
com.gs.collections.api.block.predicate.Predicate<? super T> predicate,
R target)
public static <T> int count(java.util.Iterator<T> iterator,
com.gs.collections.api.block.predicate.Predicate<? super T> predicate)
Iterate.count(Iterable, Predicate)public static <T,P> int countWith(java.util.Iterator<T> iterator,
com.gs.collections.api.block.predicate.Predicate2<? super T,? super P> predicate,
P parameter)
public static <T,R extends java.util.Collection<T>> R select(java.util.Iterator<T> iterator,
com.gs.collections.api.block.predicate.Predicate<? super T> predicate,
R targetCollection)
public static <T,P,R extends java.util.Collection<T>> R selectWith(java.util.Iterator<T> iterator,
com.gs.collections.api.block.predicate.Predicate2<? super T,? super P> predicate,
P injectedValue,
R targetCollection)
public static <T,R extends java.util.Collection<T>> R selectInstancesOf(java.util.Iterator<?> iterator,
java.lang.Class<T> clazz,
R targetCollection)
public static <T,V,R extends java.util.Collection<V>> R collectIf(java.util.Iterator<T> iterator,
com.gs.collections.api.block.predicate.Predicate<? super T> predicate,
com.gs.collections.api.block.function.Function<? super T,? extends V> function,
R targetCollection)
public static <T,R extends java.util.Collection<T>> R reject(java.util.Iterator<T> iterator,
com.gs.collections.api.block.predicate.Predicate<? super T> predicate,
R targetCollection)
public static <T,P,R extends java.util.Collection<T>> R rejectWith(java.util.Iterator<T> iterator,
com.gs.collections.api.block.predicate.Predicate2<? super T,? super P> predicate,
P parameter,
R targetCollection)
public static <T,V,R extends java.util.Collection<V>> R collect(java.util.Iterator<T> iterator,
com.gs.collections.api.block.function.Function<? super T,? extends V> function,
R targetCollection)
public static <T> com.gs.collections.api.collection.primitive.MutableBooleanCollection collectBoolean(java.util.Iterator<T> iterator,
com.gs.collections.api.block.function.primitive.BooleanFunction<? super T> booleanFunction)
public static <T,R extends com.gs.collections.api.collection.primitive.MutableBooleanCollection> R collectBoolean(java.util.Iterator<T> iterator,
com.gs.collections.api.block.function.primitive.BooleanFunction<? super T> booleanFunction,
R target)
public static <T> com.gs.collections.api.collection.primitive.MutableByteCollection collectByte(java.util.Iterator<T> iterator,
com.gs.collections.api.block.function.primitive.ByteFunction<? super T> byteFunction)
public static <T,R extends com.gs.collections.api.collection.primitive.MutableByteCollection> R collectByte(java.util.Iterator<T> iterator,
com.gs.collections.api.block.function.primitive.ByteFunction<? super T> byteFunction,
R target)
public static <T> com.gs.collections.api.collection.primitive.MutableCharCollection collectChar(java.util.Iterator<T> iterator,
com.gs.collections.api.block.function.primitive.CharFunction<? super T> charFunction)
public static <T,R extends com.gs.collections.api.collection.primitive.MutableCharCollection> R collectChar(java.util.Iterator<T> iterator,
com.gs.collections.api.block.function.primitive.CharFunction<? super T> charFunction,
R target)
public static <T> com.gs.collections.api.collection.primitive.MutableDoubleCollection collectDouble(java.util.Iterator<T> iterator,
com.gs.collections.api.block.function.primitive.DoubleFunction<? super T> doubleFunction)
public static <T,R extends com.gs.collections.api.collection.primitive.MutableDoubleCollection> R collectDouble(java.util.Iterator<T> iterator,
com.gs.collections.api.block.function.primitive.DoubleFunction<? super T> doubleFunction,
R target)
public static <T> com.gs.collections.api.collection.primitive.MutableFloatCollection collectFloat(java.util.Iterator<T> iterator,
com.gs.collections.api.block.function.primitive.FloatFunction<? super T> floatFunction)
public static <T,R extends com.gs.collections.api.collection.primitive.MutableFloatCollection> R collectFloat(java.util.Iterator<T> iterator,
com.gs.collections.api.block.function.primitive.FloatFunction<? super T> floatFunction,
R target)
public static <T> com.gs.collections.api.collection.primitive.MutableIntCollection collectInt(java.util.Iterator<T> iterator,
com.gs.collections.api.block.function.primitive.IntFunction<? super T> intFunction)
public static <T,R extends com.gs.collections.api.collection.primitive.MutableIntCollection> R collectInt(java.util.Iterator<T> iterator,
com.gs.collections.api.block.function.primitive.IntFunction<? super T> intFunction,
R target)
public static <T> com.gs.collections.api.collection.primitive.MutableLongCollection collectLong(java.util.Iterator<T> iterator,
com.gs.collections.api.block.function.primitive.LongFunction<? super T> longFunction)
public static <T,R extends com.gs.collections.api.collection.primitive.MutableLongCollection> R collectLong(java.util.Iterator<T> iterator,
com.gs.collections.api.block.function.primitive.LongFunction<? super T> longFunction,
R target)
public static <T> com.gs.collections.api.collection.primitive.MutableShortCollection collectShort(java.util.Iterator<T> iterator,
com.gs.collections.api.block.function.primitive.ShortFunction<? super T> shortFunction)
public static <T,R extends com.gs.collections.api.collection.primitive.MutableShortCollection> R collectShort(java.util.Iterator<T> iterator,
com.gs.collections.api.block.function.primitive.ShortFunction<? super T> shortFunction,
R target)
public static <T,V,R extends java.util.Collection<V>> R flatCollect(java.util.Iterator<T> iterator,
com.gs.collections.api.block.function.Function<? super T,? extends java.lang.Iterable<V>> function,
R targetCollection)
public static <T> void forEach(java.util.Iterator<T> iterator,
com.gs.collections.api.block.procedure.Procedure<? super T> procedure)
Iterate.forEach(Iterable, Procedure)public static <T> void forEachWithIndex(java.util.Iterator<T> iterator,
com.gs.collections.api.block.procedure.primitive.ObjectIntProcedure<? super T> objectIntProcedure)
public static <T> T detect(java.util.Iterator<T> iterator,
com.gs.collections.api.block.predicate.Predicate<? super T> predicate)
Iterate.detect(Iterable, Predicate)public static <T,P> T detectWith(java.util.Iterator<T> iterator,
com.gs.collections.api.block.predicate.Predicate2<? super T,? super P> predicate,
P parameter)
public static <T,IV> IV injectInto(IV injectValue,
java.util.Iterator<T> iterator,
com.gs.collections.api.block.function.Function2<? super IV,? super T,? extends IV> function)
public static <T> int injectInto(int injectValue,
java.util.Iterator<T> iterator,
com.gs.collections.api.block.function.primitive.IntObjectToIntFunction<? super T> function)
public static <T> long injectInto(long injectValue,
java.util.Iterator<T> iterator,
com.gs.collections.api.block.function.primitive.LongObjectToLongFunction<? super T> function)
public static <T> double injectInto(double injectValue,
java.util.Iterator<T> iterator,
com.gs.collections.api.block.function.primitive.DoubleObjectToDoubleFunction<? super T> function)
public static <T> float injectInto(float injectValue,
java.util.Iterator<T> iterator,
com.gs.collections.api.block.function.primitive.FloatObjectToFloatFunction<? super T> function)
public static <T,IV,P> IV injectIntoWith(IV injectValue,
java.util.Iterator<T> iterator,
com.gs.collections.api.block.function.Function3<? super IV,? super T,? super P,? extends IV> function,
P parameter)
public static <T> boolean shortCircuit(java.util.Iterator<T> iterator,
com.gs.collections.api.block.predicate.Predicate<? super T> predicate,
boolean expected,
boolean onShortCircuit,
boolean atEnd)
public static <T,P> boolean shortCircuitWith(java.util.Iterator<T> iterator,
com.gs.collections.api.block.predicate.Predicate2<? super T,? super P> predicate2,
P parameter,
boolean expected,
boolean onShortCircuit,
boolean atEnd)
public static <T> boolean anySatisfy(java.util.Iterator<T> iterator,
com.gs.collections.api.block.predicate.Predicate<? super T> predicate)
public static <T,P> boolean anySatisfyWith(java.util.Iterator<T> iterator,
com.gs.collections.api.block.predicate.Predicate2<? super T,? super P> predicate,
P parameter)
public static <T> boolean allSatisfy(java.util.Iterator<T> iterator,
com.gs.collections.api.block.predicate.Predicate<? super T> predicate)
public static <T,P> boolean allSatisfyWith(java.util.Iterator<T> iterator,
com.gs.collections.api.block.predicate.Predicate2<? super T,? super P> predicate,
P parameter)
public static <T> boolean noneSatisfy(java.util.Iterator<T> iterator,
com.gs.collections.api.block.predicate.Predicate<? super T> predicate)
public static <T,P> boolean noneSatisfyWith(java.util.Iterator<T> iterator,
com.gs.collections.api.block.predicate.Predicate2<? super T,? super P> predicate,
P parameter)
public static <T> boolean removeIf(java.util.Iterator<T> iterator,
com.gs.collections.api.block.predicate.Predicate<? super T> predicate)
public static <T,P> boolean removeIfWith(java.util.Iterator<T> iterator,
com.gs.collections.api.block.predicate.Predicate2<? super T,? super P> predicate,
P parameter)
public static <T> boolean removeIf(java.util.Iterator<T> iterator,
com.gs.collections.api.block.predicate.Predicate<? super T> predicate,
com.gs.collections.api.block.procedure.Procedure<? super T> procedure)
public static <T,P> boolean removeIfWith(java.util.Iterator<T> iterator,
com.gs.collections.api.block.predicate.Predicate2<? super T,? super P> predicate,
P parameter,
com.gs.collections.api.block.procedure.Procedure<? super T> procedure)
public static <T> int detectIndex(java.util.Iterator<T> iterator,
com.gs.collections.api.block.predicate.Predicate<? super T> predicate)
public static <T,IV> int detectIndexWith(java.util.Iterator<T> iterator,
com.gs.collections.api.block.predicate.Predicate2<? super T,? super IV> predicate,
IV injectedValue)
public static <T,P> void forEachWith(java.util.Iterator<T> iterator,
com.gs.collections.api.block.procedure.Procedure2<? super T,? super P> procedure,
P parameter)
public static <T,P,A,R extends java.util.Collection<A>> R collectWith(java.util.Iterator<T> iterator,
com.gs.collections.api.block.function.Function2<? super T,? super P,? extends A> function,
P parameter,
R targetCollection)
public static <T,V> com.gs.collections.api.multimap.ImmutableMultimap<V,T> groupBy(java.util.Iterator<T> iterator,
com.gs.collections.api.block.function.Function<? super T,? extends V> function)
Iterate.groupBy(Iterable, Function)public static <T,V,R extends com.gs.collections.api.multimap.MutableMultimap<V,T>> R groupBy(java.util.Iterator<T> iterator,
com.gs.collections.api.block.function.Function<? super T,? extends V> function,
R target)
public static <T,V,R extends com.gs.collections.api.multimap.MutableMultimap<V,T>> R groupByEach(java.util.Iterator<T> iterator,
com.gs.collections.api.block.function.Function<? super T,? extends java.lang.Iterable<V>> function,
R target)
public static <K,T,R extends com.gs.collections.api.map.MutableMap<K,T>> R groupByUniqueKey(java.util.Iterator<T> iterator,
com.gs.collections.api.block.function.Function<? super T,? extends K> function,
R target)
@Deprecated
public static <T,R extends java.util.List<T>> R distinct(java.util.Iterator<T> iterator,
R targetCollection)
public static <T> com.gs.collections.api.list.MutableList<T> distinct(java.util.Iterator<T> iterator)
public static <T> com.gs.collections.api.list.MutableList<T> distinct(java.util.Iterator<T> iterator,
com.gs.collections.api.block.HashingStrategy<? super T> hashingStrategy)
public static <X,Y,R extends java.util.Collection<com.gs.collections.api.tuple.Pair<X,Y>>> R zip(java.util.Iterator<X> xs,
java.util.Iterator<Y> ys,
R target)
public static <T,R extends java.util.Collection<com.gs.collections.api.tuple.Pair<T,java.lang.Integer>>> R zipWithIndex(java.util.Iterator<T> iterator,
R target)
public static <T> com.gs.collections.api.RichIterable<com.gs.collections.api.RichIterable<T>> chunk(java.util.Iterator<T> iterator,
int size)
Iterate.chunk(Iterable, int)public static <T> T min(java.util.Iterator<T> iterator,
java.util.Comparator<? super T> comparator)
Iterate.min(Iterable, Comparator)public static <T> T max(java.util.Iterator<T> iterator,
java.util.Comparator<? super T> comparator)
Iterate.max(Iterable, Comparator)public static <T> java.util.Iterator<T> advanceIteratorTo(java.util.Iterator<T> iterator,
int from)
public static <T> long sumOfInt(java.util.Iterator<T> iterator,
com.gs.collections.api.block.function.primitive.IntFunction<? super T> function)
public static <T> long sumOfLong(java.util.Iterator<T> iterator,
com.gs.collections.api.block.function.primitive.LongFunction<? super T> function)
public static <T> double sumOfFloat(java.util.Iterator<T> iterator,
com.gs.collections.api.block.function.primitive.FloatFunction<? super T> function)
public static <T> double sumOfDouble(java.util.Iterator<T> iterator,
com.gs.collections.api.block.function.primitive.DoubleFunction<? super T> function)
public static <T> java.math.BigDecimal sumOfBigDecimal(java.util.Iterator<T> iterator,
com.gs.collections.api.block.function.Function<? super T,java.math.BigDecimal> function)
public static <T> java.math.BigInteger sumOfBigInteger(java.util.Iterator<T> iterator,
com.gs.collections.api.block.function.Function<? super T,java.math.BigInteger> function)
public static <V,T> com.gs.collections.api.map.MutableMap<V,java.math.BigDecimal> sumByBigDecimal(java.util.Iterator<T> iterator,
com.gs.collections.api.block.function.Function<T,V> groupBy,
com.gs.collections.api.block.function.Function<? super T,java.math.BigDecimal> function)
public static <V,T> com.gs.collections.api.map.MutableMap<V,java.math.BigInteger> sumByBigInteger(java.util.Iterator<T> iterator,
com.gs.collections.api.block.function.Function<T,V> groupBy,
com.gs.collections.api.block.function.Function<? super T,java.math.BigInteger> function)
public static <T,K,V> com.gs.collections.api.map.MutableMap<K,V> aggregateBy(java.util.Iterator<T> iterator,
com.gs.collections.api.block.function.Function<? super T,? extends K> groupBy,
com.gs.collections.api.block.function.Function0<? extends V> zeroValueFactory,
com.gs.collections.api.block.procedure.Procedure2<? super V,? super T> mutatingAggregator)
public static <T,K,V> com.gs.collections.api.map.MutableMap<K,V> aggregateBy(java.util.Iterator<T> iterator,
com.gs.collections.api.block.function.Function<? super T,? extends K> groupBy,
com.gs.collections.api.block.function.Function0<? extends V> zeroValueFactory,
com.gs.collections.api.block.function.Function2<? super V,? super T,? extends V> nonMutatingAggregator)
public static <T,V extends java.lang.Comparable<? super V>> T minBy(java.util.Iterator<T> iterator,
com.gs.collections.api.block.function.Function<? super T,? extends V> function)
public static <T,V extends java.lang.Comparable<? super V>> T maxBy(java.util.Iterator<T> iterator,
com.gs.collections.api.block.function.Function<? super T,? extends V> function)