T
- the type of items in the iterable.public class ChainedIterable<T> extends Object implements CloseableIterable<T>
ChainedIterable
is an iterable composed of other Iterable
s.
As a client iterates through this iterable, the child iterables are consumed
sequentially.Constructor and Description |
---|
ChainedIterable(Iterable... itrs) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
CloseableIterator<T> |
iterator() |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public ChainedIterable(Iterable... itrs)
public void close()
close
in interface Closeable
close
in interface AutoCloseable
close
in interface CloseableIterable<T>
public CloseableIterator<T> iterator()
Copyright © 2022. All rights reserved.