- All Implemented Interfaces:
public class JoinedIterable<T>
- extends Object
- implements Iterable<T>
An JoinedIterable is an Iterable that wraps a number of Iterables.
This class makes multiple iterables look like one to the caller.
When any method from the Iterator interface is called on the
Iterator object returned by
iterator(), the JoinedIterable
will delegate to a single underlying Iterator. The JoinedIterable will
invoke the iterator on each Iterable, in sequence, until all Iterators
|Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public JoinedIterable(List<Iterable<T>> iterables)
public Iterator<T> iterator()
- Specified by:
iterator in interface
Copyright © 2001-2015 Red Hat, Inc. All Rights Reserved.