public final class IterableIterate
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static <T,K,V> com.gs.collections.api.map.MutableMap<K,V> |
aggregateBy(java.lang.Iterable<T> iterable,
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> |
aggregateInPlaceBy(java.lang.Iterable<T> iterable,
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.lang.Iterable<T> iterable,
com.gs.collections.api.block.predicate.Predicate<? super T> predicate) |
static <T,IV> boolean |
allSatisfyWith(java.lang.Iterable<T> iterable,
com.gs.collections.api.block.predicate.Predicate2<? super T,? super IV> predicate,
IV injectedValue) |
static <T> boolean |
anySatisfy(java.lang.Iterable<T> iterable,
com.gs.collections.api.block.predicate.Predicate<? super T> predicate) |
static <T,IV> boolean |
anySatisfyWith(java.lang.Iterable<T> iterable,
com.gs.collections.api.block.predicate.Predicate2<? super T,? super IV> predicate,
IV injectedValue) |
static <T> void |
appendString(java.lang.Iterable<T> iterable,
java.lang.Appendable appendable,
java.lang.String start,
java.lang.String separator,
java.lang.String end) |
static <T> com.gs.collections.api.RichIterable<com.gs.collections.api.RichIterable<T>> |
chunk(java.lang.Iterable<T> iterable,
int size) |
static <T,V> com.gs.collections.api.list.MutableList<V> |
collect(java.lang.Iterable<T> iterable,
com.gs.collections.api.block.function.Function<? super T,? extends V> function) |
static <T,V,R extends java.util.Collection<V>> |
collect(java.lang.Iterable<T> iterable,
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.lang.Iterable<T> iterable,
com.gs.collections.api.block.function.primitive.BooleanFunction<? super T> booleanFunction) |
static <T,R extends com.gs.collections.api.collection.primitive.MutableBooleanCollection> |
collectBoolean(java.lang.Iterable<T> iterable,
com.gs.collections.api.block.function.primitive.BooleanFunction<? super T> booleanFunction,
R target) |
static <T> com.gs.collections.api.collection.primitive.MutableByteCollection |
collectByte(java.lang.Iterable<T> iterable,
com.gs.collections.api.block.function.primitive.ByteFunction<? super T> byteFunction) |
static <T,R extends com.gs.collections.api.collection.primitive.MutableByteCollection> |
collectByte(java.lang.Iterable<T> iterable,
com.gs.collections.api.block.function.primitive.ByteFunction<? super T> byteFunction,
R target) |
static <T> com.gs.collections.api.collection.primitive.MutableCharCollection |
collectChar(java.lang.Iterable<T> iterable,
com.gs.collections.api.block.function.primitive.CharFunction<? super T> charFunction) |
static <T,R extends com.gs.collections.api.collection.primitive.MutableCharCollection> |
collectChar(java.lang.Iterable<T> iterable,
com.gs.collections.api.block.function.primitive.CharFunction<? super T> charFunction,
R target) |
static <T> com.gs.collections.api.collection.primitive.MutableDoubleCollection |
collectDouble(java.lang.Iterable<T> iterable,
com.gs.collections.api.block.function.primitive.DoubleFunction<? super T> doubleFunction) |
static <T,R extends com.gs.collections.api.collection.primitive.MutableDoubleCollection> |
collectDouble(java.lang.Iterable<T> iterable,
com.gs.collections.api.block.function.primitive.DoubleFunction<? super T> doubleFunction,
R target) |
static <T> com.gs.collections.api.collection.primitive.MutableFloatCollection |
collectFloat(java.lang.Iterable<T> iterable,
com.gs.collections.api.block.function.primitive.FloatFunction<? super T> floatFunction) |
static <T,R extends com.gs.collections.api.collection.primitive.MutableFloatCollection> |
collectFloat(java.lang.Iterable<T> iterable,
com.gs.collections.api.block.function.primitive.FloatFunction<? super T> floatFunction,
R target) |
static <T,V> com.gs.collections.api.list.MutableList<V> |
collectIf(java.lang.Iterable<T> iterable,
com.gs.collections.api.block.predicate.Predicate<? super T> predicate,
com.gs.collections.api.block.function.Function<? super T,? extends V> function) |
static <T,V,R extends java.util.Collection<V>> |
collectIf(java.lang.Iterable<T> iterable,
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.lang.Iterable<T> iterable,
com.gs.collections.api.block.function.primitive.IntFunction<? super T> intFunction) |
static <T,R extends com.gs.collections.api.collection.primitive.MutableIntCollection> |
collectInt(java.lang.Iterable<T> iterable,
com.gs.collections.api.block.function.primitive.IntFunction<? super T> intFunction,
R target) |
static <T> com.gs.collections.api.collection.primitive.MutableLongCollection |
collectLong(java.lang.Iterable<T> iterable,
com.gs.collections.api.block.function.primitive.LongFunction<? super T> longFunction) |
static <T,R extends com.gs.collections.api.collection.primitive.MutableLongCollection> |
collectLong(java.lang.Iterable<T> iterable,
com.gs.collections.api.block.function.primitive.LongFunction<? super T> longFunction,
R target) |
static <T> com.gs.collections.api.collection.primitive.MutableShortCollection |
collectShort(java.lang.Iterable<T> iterable,
com.gs.collections.api.block.function.primitive.ShortFunction<? super T> shortFunction) |
static <T,R extends com.gs.collections.api.collection.primitive.MutableShortCollection> |
collectShort(java.lang.Iterable<T> iterable,
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.lang.Iterable<T> iterable,
com.gs.collections.api.block.function.Function2<? super T,? super P,? extends A> function,
P parameter,
R targetCollection) |
static <T,P,V> com.gs.collections.api.list.MutableList<V> |
collectWith(java.lang.Iterable<T> iterable,
com.gs.collections.api.block.function.Function2<? super T,? super P,? extends V> function,
P parameter) |
static <T> int |
count(java.lang.Iterable<T> iterable,
com.gs.collections.api.block.predicate.Predicate<? super T> predicate) |
static <T,IV> int |
countWith(java.lang.Iterable<T> iterable,
com.gs.collections.api.block.predicate.Predicate2<? super T,? super IV> predicate,
IV injectedValue) |
static <T> T |
detect(java.lang.Iterable<T> iterable,
com.gs.collections.api.block.predicate.Predicate<? super T> predicate) |
static <T> int |
detectIndex(java.lang.Iterable<T> iterable,
com.gs.collections.api.block.predicate.Predicate<? super T> predicate) |
static <T,IV> int |
detectIndexWith(java.lang.Iterable<T> iterable,
com.gs.collections.api.block.predicate.Predicate2<? super T,? super IV> predicate,
IV injectedValue) |
static <T,IV> T |
detectWith(java.lang.Iterable<T> iterable,
com.gs.collections.api.block.predicate.Predicate2<? super T,? super IV> predicate,
IV injectedValue) |
static <T,R extends java.util.Collection<T>> |
distinct(java.lang.Iterable<T> iterable,
R targetCollection) |
static <T> java.util.Collection<T> |
drop(java.lang.Iterable<T> list,
int count) |
static <T,R extends java.util.Collection<T>> |
drop(java.lang.Iterable<T> iterable,
int count,
R targetCollection) |
static <T,R extends com.gs.collections.api.collection.MutableCollection<T>> |
dropWhile(java.lang.Iterable<T> iterable,
com.gs.collections.api.block.predicate.Predicate<? super T> predicate,
R target) |
static <T,V> com.gs.collections.api.list.MutableList<V> |
flatCollect(java.lang.Iterable<T> iterable,
com.gs.collections.api.block.function.Function<? super T,? extends java.lang.Iterable<V>> function) |
static <T,V,R extends java.util.Collection<V>> |
flatCollect(java.lang.Iterable<T> iterable,
com.gs.collections.api.block.function.Function<? super T,? extends java.lang.Iterable<V>> function,
R targetCollection) |
static <T> void |
forEach(java.lang.Iterable<T> iterable,
int from,
int to,
com.gs.collections.api.block.procedure.Procedure<? super T> procedure) |
static <T> void |
forEach(java.lang.Iterable<T> iterable,
com.gs.collections.api.block.procedure.Procedure<? super T> procedure) |
static <T,P> void |
forEachWith(java.lang.Iterable<T> iterable,
com.gs.collections.api.block.procedure.Procedure2<? super T,? super P> procedure,
P parameter) |
static <T> void |
forEachWithIndex(java.lang.Iterable<T> iterable,
com.gs.collections.api.block.procedure.primitive.ObjectIntProcedure<? super T> objectIntProcedure) |
static <T> void |
forEachWithIndex(java.util.List<T> iterable,
int from,
int to,
com.gs.collections.api.block.procedure.primitive.ObjectIntProcedure<? super T> objectIntProcedure) |
static <T> T |
getFirst(java.lang.Iterable<T> iterable) |
static <T> T |
getLast(java.lang.Iterable<T> iterable) |
static <T> T |
getOnly(java.lang.Iterable<T> iterable) |
static <T,V> FastListMultimap<V,T> |
groupBy(java.lang.Iterable<T> iterable,
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.lang.Iterable<T> iterable,
com.gs.collections.api.block.function.Function<? super T,? extends V> function,
R target) |
static <T,V> FastListMultimap<V,T> |
groupByEach(java.lang.Iterable<T> iterable,
com.gs.collections.api.block.function.Function<? super T,? extends java.lang.Iterable<V>> function) |
static <T,V,R extends com.gs.collections.api.multimap.MutableMultimap<V,T>> |
groupByEach(java.lang.Iterable<T> iterable,
com.gs.collections.api.block.function.Function<? super T,? extends java.lang.Iterable<V>> function,
R target) |
static <T> double |
injectInto(double injectValue,
java.lang.Iterable<T> iterable,
com.gs.collections.api.block.function.primitive.DoubleObjectToDoubleFunction<? super T> function) |
static <T> float |
injectInto(float injectValue,
java.lang.Iterable<T> iterable,
com.gs.collections.api.block.function.primitive.FloatObjectToFloatFunction<? super T> function) |
static <T> int |
injectInto(int injectValue,
java.lang.Iterable<T> iterable,
com.gs.collections.api.block.function.primitive.IntObjectToIntFunction<? super T> function) |
static <T,IV> IV |
injectInto(IV injectValue,
java.lang.Iterable<T> iterable,
com.gs.collections.api.block.function.Function2<? super IV,? super T,? extends IV> function) |
static <T> long |
injectInto(long injectValue,
java.lang.Iterable<T> iterable,
com.gs.collections.api.block.function.primitive.LongObjectToLongFunction<? super T> function) |
static <T,IV,P> IV |
injectIntoWith(IV injectValue,
java.lang.Iterable<T> iterable,
com.gs.collections.api.block.function.Function3<? super IV,? super T,? super P,? extends IV> function,
P parameter) |
static boolean |
isEmpty(java.lang.Iterable<?> iterable) |
static <T> T |
max(java.lang.Iterable<T> iterable) |
static <T> T |
max(java.lang.Iterable<T> iterable,
java.util.Comparator<? super T> comparator) |
static <T,V extends java.lang.Comparable<? super V>> |
maxBy(java.lang.Iterable<T> iterable,
com.gs.collections.api.block.function.Function<? super T,? extends V> function) |
static <T> T |
min(java.lang.Iterable<T> iterable) |
static <T> T |
min(java.lang.Iterable<T> iterable,
java.util.Comparator<? super T> comparator) |
static <T,V extends java.lang.Comparable<? super V>> |
minBy(java.lang.Iterable<T> iterable,
com.gs.collections.api.block.function.Function<? super T,? extends V> function) |
static <T> boolean |
noneSatisfy(java.lang.Iterable<T> iterable,
com.gs.collections.api.block.predicate.Predicate<? super T> predicate) |
static <T,IV> boolean |
noneSatisfyWith(java.lang.Iterable<T> iterable,
com.gs.collections.api.block.predicate.Predicate2<? super T,? super IV> predicate,
IV injectedValue) |
static boolean |
notEmpty(java.lang.Iterable<?> iterable) |
static <T> com.gs.collections.api.partition.list.PartitionMutableList<T> |
partition(java.lang.Iterable<T> iterable,
com.gs.collections.api.block.predicate.Predicate<? super T> predicate) |
static <T,R extends com.gs.collections.api.partition.PartitionMutableCollection<T>> |
partitionWhile(java.lang.Iterable<T> iterable,
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.lang.Iterable<T> iterable,
com.gs.collections.api.block.predicate.Predicate2<? super T,? super P> predicate,
P parameter) |
static <T> com.gs.collections.api.list.MutableList<T> |
reject(java.lang.Iterable<T> iterable,
com.gs.collections.api.block.predicate.Predicate<? super T> predicate) |
static <T,R extends java.util.Collection<T>> |
reject(java.lang.Iterable<T> iterable,
com.gs.collections.api.block.predicate.Predicate<? super T> predicate,
R targetCollection) |
static <T,P,R extends java.util.Collection<T>> |
rejectWith(java.lang.Iterable<T> iterable,
com.gs.collections.api.block.predicate.Predicate2<? super T,? super P> predicate,
P parameter,
R targetCollection) |
static <T> java.lang.Iterable<T> |
removeIf(java.lang.Iterable<T> iterable,
com.gs.collections.api.block.predicate.Predicate<? super T> predicate) |
static <T> java.lang.Iterable<T> |
removeIf(java.lang.Iterable<T> iterable,
com.gs.collections.api.block.predicate.Predicate<? super T> predicate,
com.gs.collections.api.block.procedure.Procedure<? super T> procedure) |
static <T,P> java.lang.Iterable<T> |
removeIfWith(java.lang.Iterable<T> iterable,
com.gs.collections.api.block.predicate.Predicate2<? super T,? super P> predicate,
P parameter) |
static <T> com.gs.collections.api.list.MutableList<T> |
select(java.lang.Iterable<T> iterable,
com.gs.collections.api.block.predicate.Predicate<? super T> predicate) |
static <T,R extends java.util.Collection<T>> |
select(java.lang.Iterable<T> iterable,
com.gs.collections.api.block.predicate.Predicate<? super T> predicate,
R targetCollection) |
static <T,IV> com.gs.collections.api.tuple.Twin<com.gs.collections.api.list.MutableList<T>> |
selectAndRejectWith(java.lang.Iterable<T> iterable,
com.gs.collections.api.block.predicate.Predicate2<? super T,? super IV> predicate,
IV injectedValue) |
static <T> com.gs.collections.api.list.MutableList<T> |
selectInstancesOf(java.lang.Iterable<?> iterable,
java.lang.Class<T> clazz) |
static <T,R extends java.util.Collection<T>> |
selectInstancesOf(java.lang.Iterable<?> iterable,
java.lang.Class<T> clazz,
R targetCollection) |
static <T,P,R extends java.util.Collection<T>> |
selectWith(java.lang.Iterable<T> iterable,
com.gs.collections.api.block.predicate.Predicate2<? super T,? super P> predicate,
P injectedValue,
R targetCollection) |
static <T> java.lang.String |
stringValueOfItem(java.lang.Iterable<T> iterable,
T item) |
static <T> double |
sumOfDouble(java.lang.Iterable<T> iterable,
com.gs.collections.api.block.function.primitive.DoubleFunction<? super T> function) |
static <T> double |
sumOfFloat(java.lang.Iterable<T> iterable,
com.gs.collections.api.block.function.primitive.FloatFunction<? super T> function) |
static <T> long |
sumOfInt(java.lang.Iterable<T> iterable,
com.gs.collections.api.block.function.primitive.IntFunction<? super T> function) |
static <T> long |
sumOfLong(java.lang.Iterable<T> iterable,
com.gs.collections.api.block.function.primitive.LongFunction<? super T> function) |
static <T> java.util.Collection<T> |
take(java.lang.Iterable<T> iterable,
int count) |
static <T,R extends java.util.Collection<T>> |
take(java.lang.Iterable<T> iterable,
int count,
R targetCollection) |
static <T,R extends com.gs.collections.api.collection.MutableCollection<T>> |
takeWhile(java.lang.Iterable<T> iterable,
com.gs.collections.api.block.predicate.Predicate<? super T> predicate,
R target) |
static <X,Y> com.gs.collections.api.list.MutableList<com.gs.collections.api.tuple.Pair<X,Y>> |
zip(java.lang.Iterable<X> xs,
java.lang.Iterable<Y> ys) |
static <X,Y,R extends java.util.Collection<com.gs.collections.api.tuple.Pair<X,Y>>> |
zip(java.lang.Iterable<X> xs,
java.lang.Iterable<Y> ys,
R target) |
static <T> com.gs.collections.api.list.MutableList<com.gs.collections.api.tuple.Pair<T,java.lang.Integer>> |
zipWithIndex(java.lang.Iterable<T> iterable) |
static <T,R extends java.util.Collection<com.gs.collections.api.tuple.Pair<T,java.lang.Integer>>> |
zipWithIndex(java.lang.Iterable<T> iterable,
R target) |
public static <T> com.gs.collections.api.list.MutableList<T> select(java.lang.Iterable<T> iterable,
com.gs.collections.api.block.predicate.Predicate<? super T> predicate)
Iterate.select(Iterable, Predicate)public static <T,IV> com.gs.collections.api.tuple.Twin<com.gs.collections.api.list.MutableList<T>> selectAndRejectWith(java.lang.Iterable<T> iterable,
com.gs.collections.api.block.predicate.Predicate2<? super T,? super IV> predicate,
IV injectedValue)
public static <T> com.gs.collections.api.partition.list.PartitionMutableList<T> partition(java.lang.Iterable<T> iterable,
com.gs.collections.api.block.predicate.Predicate<? super T> predicate)
public static <T,P> com.gs.collections.api.partition.list.PartitionMutableList<T> partitionWith(java.lang.Iterable<T> iterable,
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.lang.Iterable<T> iterable,
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.lang.Iterable<T> iterable,
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.lang.Iterable<T> iterable,
com.gs.collections.api.block.predicate.Predicate<? super T> predicate,
R target)
public static <T> int count(java.lang.Iterable<T> iterable,
com.gs.collections.api.block.predicate.Predicate<? super T> predicate)
Iterate.count(Iterable, Predicate)public static <T,IV> int countWith(java.lang.Iterable<T> iterable,
com.gs.collections.api.block.predicate.Predicate2<? super T,? super IV> predicate,
IV injectedValue)
public static <T,V> com.gs.collections.api.list.MutableList<V> collectIf(java.lang.Iterable<T> iterable,
com.gs.collections.api.block.predicate.Predicate<? super T> predicate,
com.gs.collections.api.block.function.Function<? super T,? extends V> function)
public static boolean isEmpty(java.lang.Iterable<?> iterable)
public static boolean notEmpty(java.lang.Iterable<?> iterable)
public static <T> T getFirst(java.lang.Iterable<T> iterable)
public static <T> T getLast(java.lang.Iterable<T> iterable)
public static <T,R extends java.util.Collection<T>> R select(java.lang.Iterable<T> iterable,
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.lang.Iterable<T> iterable,
com.gs.collections.api.block.predicate.Predicate2<? super T,? super P> predicate,
P injectedValue,
R targetCollection)
public static <T> com.gs.collections.api.list.MutableList<T> selectInstancesOf(java.lang.Iterable<?> iterable,
java.lang.Class<T> clazz)
public static <T,R extends java.util.Collection<T>> R selectInstancesOf(java.lang.Iterable<?> iterable,
java.lang.Class<T> clazz,
R targetCollection)
public static <T,V,R extends java.util.Collection<V>> R collectIf(java.lang.Iterable<T> iterable,
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> com.gs.collections.api.list.MutableList<T> reject(java.lang.Iterable<T> iterable,
com.gs.collections.api.block.predicate.Predicate<? super T> predicate)
Iterate.reject(Iterable, Predicate)public static <T,R extends java.util.Collection<T>> R reject(java.lang.Iterable<T> iterable,
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.lang.Iterable<T> iterable,
com.gs.collections.api.block.predicate.Predicate2<? super T,? super P> predicate,
P parameter,
R targetCollection)
public static <T,V> com.gs.collections.api.list.MutableList<V> collect(java.lang.Iterable<T> iterable,
com.gs.collections.api.block.function.Function<? super T,? extends V> function)
Iterate.collect(Iterable, Function)public static <T,V,R extends java.util.Collection<V>> R collect(java.lang.Iterable<T> iterable,
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.lang.Iterable<T> iterable,
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.lang.Iterable<T> iterable,
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.lang.Iterable<T> iterable,
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.lang.Iterable<T> iterable,
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.lang.Iterable<T> iterable,
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.lang.Iterable<T> iterable,
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.lang.Iterable<T> iterable,
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.lang.Iterable<T> iterable,
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.lang.Iterable<T> iterable,
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.lang.Iterable<T> iterable,
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.lang.Iterable<T> iterable,
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.lang.Iterable<T> iterable,
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.lang.Iterable<T> iterable,
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.lang.Iterable<T> iterable,
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.lang.Iterable<T> iterable,
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.lang.Iterable<T> iterable,
com.gs.collections.api.block.function.primitive.ShortFunction<? super T> shortFunction,
R target)
public static <T,V> com.gs.collections.api.list.MutableList<V> flatCollect(java.lang.Iterable<T> iterable,
com.gs.collections.api.block.function.Function<? super T,? extends java.lang.Iterable<V>> function)
public static <T,V,R extends java.util.Collection<V>> R flatCollect(java.lang.Iterable<T> iterable,
com.gs.collections.api.block.function.Function<? super T,? extends java.lang.Iterable<V>> function,
R targetCollection)
public static <T> void forEach(java.lang.Iterable<T> iterable,
com.gs.collections.api.block.procedure.Procedure<? super T> procedure)
Iterate.forEach(Iterable, Procedure)public static <T> void forEachWithIndex(java.lang.Iterable<T> iterable,
com.gs.collections.api.block.procedure.primitive.ObjectIntProcedure<? super T> objectIntProcedure)
public static <T> T detect(java.lang.Iterable<T> iterable,
com.gs.collections.api.block.predicate.Predicate<? super T> predicate)
Iterate.detect(Iterable, Predicate)public static <T,IV> T detectWith(java.lang.Iterable<T> iterable,
com.gs.collections.api.block.predicate.Predicate2<? super T,? super IV> predicate,
IV injectedValue)
public static <T,IV> IV injectInto(IV injectValue,
java.lang.Iterable<T> iterable,
com.gs.collections.api.block.function.Function2<? super IV,? super T,? extends IV> function)
public static <T> int injectInto(int injectValue,
java.lang.Iterable<T> iterable,
com.gs.collections.api.block.function.primitive.IntObjectToIntFunction<? super T> function)
public static <T> long injectInto(long injectValue,
java.lang.Iterable<T> iterable,
com.gs.collections.api.block.function.primitive.LongObjectToLongFunction<? super T> function)
public static <T> double injectInto(double injectValue,
java.lang.Iterable<T> iterable,
com.gs.collections.api.block.function.primitive.DoubleObjectToDoubleFunction<? super T> function)
public static <T> float injectInto(float injectValue,
java.lang.Iterable<T> iterable,
com.gs.collections.api.block.function.primitive.FloatObjectToFloatFunction<? super T> function)
public static <T,R extends java.util.Collection<T>> R distinct(java.lang.Iterable<T> iterable,
R targetCollection)
public static <T> long sumOfInt(java.lang.Iterable<T> iterable,
com.gs.collections.api.block.function.primitive.IntFunction<? super T> function)
public static <T> long sumOfLong(java.lang.Iterable<T> iterable,
com.gs.collections.api.block.function.primitive.LongFunction<? super T> function)
public static <T> double sumOfFloat(java.lang.Iterable<T> iterable,
com.gs.collections.api.block.function.primitive.FloatFunction<? super T> function)
public static <T> double sumOfDouble(java.lang.Iterable<T> iterable,
com.gs.collections.api.block.function.primitive.DoubleFunction<? super T> function)
public static <T,IV,P> IV injectIntoWith(IV injectValue,
java.lang.Iterable<T> iterable,
com.gs.collections.api.block.function.Function3<? super IV,? super T,? super P,? extends IV> function,
P parameter)
public static <T> boolean anySatisfy(java.lang.Iterable<T> iterable,
com.gs.collections.api.block.predicate.Predicate<? super T> predicate)
public static <T,IV> boolean anySatisfyWith(java.lang.Iterable<T> iterable,
com.gs.collections.api.block.predicate.Predicate2<? super T,? super IV> predicate,
IV injectedValue)
public static <T> boolean allSatisfy(java.lang.Iterable<T> iterable,
com.gs.collections.api.block.predicate.Predicate<? super T> predicate)
public static <T,IV> boolean allSatisfyWith(java.lang.Iterable<T> iterable,
com.gs.collections.api.block.predicate.Predicate2<? super T,? super IV> predicate,
IV injectedValue)
public static <T> boolean noneSatisfy(java.lang.Iterable<T> iterable,
com.gs.collections.api.block.predicate.Predicate<? super T> predicate)
public static <T,IV> boolean noneSatisfyWith(java.lang.Iterable<T> iterable,
com.gs.collections.api.block.predicate.Predicate2<? super T,? super IV> predicate,
IV injectedValue)
public static <T> java.lang.Iterable<T> removeIf(java.lang.Iterable<T> iterable,
com.gs.collections.api.block.predicate.Predicate<? super T> predicate)
public static <T,P> java.lang.Iterable<T> removeIfWith(java.lang.Iterable<T> iterable,
com.gs.collections.api.block.predicate.Predicate2<? super T,? super P> predicate,
P parameter)
public static <T> java.lang.Iterable<T> removeIf(java.lang.Iterable<T> iterable,
com.gs.collections.api.block.predicate.Predicate<? super T> predicate,
com.gs.collections.api.block.procedure.Procedure<? super T> procedure)
public static <T> int detectIndex(java.lang.Iterable<T> iterable,
com.gs.collections.api.block.predicate.Predicate<? super T> predicate)
public static <T,IV> int detectIndexWith(java.lang.Iterable<T> iterable,
com.gs.collections.api.block.predicate.Predicate2<? super T,? super IV> predicate,
IV injectedValue)
public static <T,P> void forEachWith(java.lang.Iterable<T> iterable,
com.gs.collections.api.block.procedure.Procedure2<? super T,? super P> procedure,
P parameter)
public static <T,P,V> com.gs.collections.api.list.MutableList<V> collectWith(java.lang.Iterable<T> iterable,
com.gs.collections.api.block.function.Function2<? super T,? super P,? extends V> function,
P parameter)
public static <T,P,A,R extends java.util.Collection<A>> R collectWith(java.lang.Iterable<T> iterable,
com.gs.collections.api.block.function.Function2<? super T,? super P,? extends A> function,
P parameter,
R targetCollection)
public static <T> java.util.Collection<T> take(java.lang.Iterable<T> iterable,
int count)
Iterate.take(Iterable, int)public static <T,R extends java.util.Collection<T>> R take(java.lang.Iterable<T> iterable,
int count,
R targetCollection)
Iterate.take(Iterable, int)public static <T> java.util.Collection<T> drop(java.lang.Iterable<T> list,
int count)
Iterate.drop(Iterable, int)public static <T,R extends java.util.Collection<T>> R drop(java.lang.Iterable<T> iterable,
int count,
R targetCollection)
Iterate.drop(Iterable, int)public static <T> void appendString(java.lang.Iterable<T> iterable,
java.lang.Appendable appendable,
java.lang.String start,
java.lang.String separator,
java.lang.String end)
RichIterable.appendString(Appendable, String, String, String)public static <T,V> FastListMultimap<V,T> groupBy(java.lang.Iterable<T> iterable, 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.lang.Iterable<T> iterable,
com.gs.collections.api.block.function.Function<? super T,? extends V> function,
R target)
public static <T,V> FastListMultimap<V,T> groupByEach(java.lang.Iterable<T> iterable, com.gs.collections.api.block.function.Function<? super T,? extends java.lang.Iterable<V>> function)
public static <T,V,R extends com.gs.collections.api.multimap.MutableMultimap<V,T>> R groupByEach(java.lang.Iterable<T> iterable,
com.gs.collections.api.block.function.Function<? super T,? extends java.lang.Iterable<V>> function,
R target)
public static <T> T getOnly(java.lang.Iterable<T> iterable)
public static <X,Y> com.gs.collections.api.list.MutableList<com.gs.collections.api.tuple.Pair<X,Y>> zip(java.lang.Iterable<X> xs,
java.lang.Iterable<Y> ys)
Iterate.zip(Iterable, Iterable)public static <X,Y,R extends java.util.Collection<com.gs.collections.api.tuple.Pair<X,Y>>> R zip(java.lang.Iterable<X> xs,
java.lang.Iterable<Y> ys,
R target)
public static <T> com.gs.collections.api.list.MutableList<com.gs.collections.api.tuple.Pair<T,java.lang.Integer>> zipWithIndex(java.lang.Iterable<T> iterable)
Iterate.zipWithIndex(Iterable)public static <T,R extends java.util.Collection<com.gs.collections.api.tuple.Pair<T,java.lang.Integer>>> R zipWithIndex(java.lang.Iterable<T> iterable,
R target)
public static <T> com.gs.collections.api.RichIterable<com.gs.collections.api.RichIterable<T>> chunk(java.lang.Iterable<T> iterable,
int size)
Iterate.chunk(Iterable, int)public static <T,V extends java.lang.Comparable<? super V>> T maxBy(java.lang.Iterable<T> iterable,
com.gs.collections.api.block.function.Function<? super T,? extends V> function)
public static <T,V extends java.lang.Comparable<? super V>> T minBy(java.lang.Iterable<T> iterable,
com.gs.collections.api.block.function.Function<? super T,? extends V> function)
public static <T> T min(java.lang.Iterable<T> iterable,
java.util.Comparator<? super T> comparator)
Iterate.min(Iterable, Comparator)public static <T> T max(java.lang.Iterable<T> iterable,
java.util.Comparator<? super T> comparator)
Iterate.max(Iterable, Comparator)public static <T> T min(java.lang.Iterable<T> iterable)
Iterate.min(Iterable)public static <T> T max(java.lang.Iterable<T> iterable)
Iterate.max(Iterable)public static <T> void forEach(java.lang.Iterable<T> iterable,
int from,
int to,
com.gs.collections.api.block.procedure.Procedure<? super T> procedure)
public static <T> void forEachWithIndex(java.util.List<T> iterable,
int from,
int to,
com.gs.collections.api.block.procedure.primitive.ObjectIntProcedure<? super T> objectIntProcedure)
public static <T> java.lang.String stringValueOfItem(java.lang.Iterable<T> iterable,
T item)
public static <T,K,V> com.gs.collections.api.map.MutableMap<K,V> aggregateInPlaceBy(java.lang.Iterable<T> iterable,
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.lang.Iterable<T> iterable,
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)