@Immutable public final class CompositeIterable<E> extends AbstractLazyIterable<E>
| Constructor and Description |
|---|
CompositeIterable() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(java.lang.Iterable<E> iterable) |
void |
forEach(com.gs.collections.api.block.procedure.Procedure<? super E> procedure)
The procedure is executed for each element in the iterable.
|
<P> void |
forEachWith(com.gs.collections.api.block.procedure.Procedure2<? super E,? super P> procedure,
P parameter)
The procedure2 is evaluated for each element in the iterable with the specified parameter provided
as the second argument.
|
void |
forEachWithIndex(com.gs.collections.api.block.procedure.primitive.ObjectIntProcedure<? super E> objectIntProcedure)
Iterates over the iterable passing each element and the current relative int index to the specified instance of
ObjectIntProcedure
|
java.util.Iterator<E> |
iterator() |
static <T> CompositeIterable<T> |
with(java.lang.Iterable<T>... iterables) |
aggregateBy, aggregateInPlaceBy, allSatisfy, anySatisfy, appendString, appendString, appendString, asLazy, chunk, collect, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectIf, collectIf, collectInt, collectLong, collectShort, collectWith, concatenate, contains, containsAll, containsAllArguments, containsAllIterable, count, detect, detectIfNone, drop, flatCollect, flatCollect, getFirst, getLast, groupBy, groupBy, groupByEach, groupByEach, injectInto, injectInto, injectInto, injectInto, injectInto, into, isEmpty, makeString, makeString, makeString, max, max, maxBy, min, min, minBy, noneSatisfy, notEmpty, partition, reject, reject, rejectWith, select, select, selectInstancesOf, selectWith, size, sumOfDouble, sumOfFloat, sumOfInt, sumOfLong, take, toArray, toArray, toBag, toList, toMap, toSet, toSortedList, toSortedList, toSortedListBy, toSortedMap, toSortedMap, toSortedSet, toSortedSet, toSortedSetBy, toStack, toString, zip, zip, zipWithIndex, zipWithIndexpublic static <T> CompositeIterable<T> with(java.lang.Iterable<T>... iterables)
public void forEach(com.gs.collections.api.block.procedure.Procedure<? super E> procedure)
com.gs.collections.api.InternalIterablee.g. people.forEach(new Procedure() { public void value(Person person) { LOGGER.info(person.getName()); } });
public void forEachWithIndex(com.gs.collections.api.block.procedure.primitive.ObjectIntProcedure<? super E> objectIntProcedure)
com.gs.collections.api.InternalIterablee.g. people.forEachWithIndex(new ObjectIntProcedure() { public void value(Person person, int index) { LOGGER.info("Index: " + index + " person: " + person.getName()); } });
public <P> void forEachWith(com.gs.collections.api.block.procedure.Procedure2<? super E,? super P> procedure, P parameter)
com.gs.collections.api.InternalIterablee.g. people.forEachWith(new Procedure2() { public void value(Person person, Person other) { if (person.isRelatedTo(other)) { LOGGER.info(person.getName()); } } }, fred);
public void add(java.lang.Iterable<E> iterable)
public java.util.Iterator<E> iterator()