T - Type of element being iteraredpublic class LazyIterablesConcatenator<T> extends Object implements Iterable<T>
Iterable using several
underlying ones to provide the values. The "lazy" denomination
is due to the fact that no iterable is consulted until the one(s) before
it have been fully exhausted.| Constructor and Description |
|---|
LazyIterablesConcatenator(Iterable<? extends Iterable<? extends T>> iterables) |
| Modifier and Type | Method and Description |
|---|---|
Iterable<? extends Iterable<? extends T>> |
getIterables() |
Iterator<T> |
iterator() |
static <T> Iterable<T> |
lazyConcatenateIterables(Iterable<? extends Iterable<? extends T>> iterables) |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic static <T> Iterable<T> lazyConcatenateIterables(Iterable<? extends Iterable<? extends T>> iterables)
T - Type if iterated elementiterables - The iterables to concatenate - ignored if nullIterable that goes over all the elements in the wrapped
iterables one after the other. The denomination "lazy" indicates
that no iterable is consulted until the previous one has been fully exhausted.Copyright © 2018–2020 The Apache Software Foundation. All rights reserved.