T - the type of objects produced by this Iterablepublic class SortedMerge<T> extends CloseableGroup implements CloseableIterable<T>
This assumes that the Iterables passed in produce items in sorted order.
CloseableIterable.ConcatCloseableIterable<E>| Constructor and Description | 
|---|
SortedMerge(java.util.Comparator<T> comparator,
           java.util.List<CloseableIterable<T>> iterables)  | 
| Modifier and Type | Method and Description | 
|---|---|
CloseableIterator<T> | 
iterator()
Returns an closeable iterator over elements of type  
T. | 
addCloseable, addCloseable, close, setSuppressCloseFailureclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcombine, concat, empty, filter, transform, withNoopClose, withNoopClosepublic SortedMerge(java.util.Comparator<T> comparator, java.util.List<CloseableIterable<T>> iterables)
public CloseableIterator<T> iterator()
CloseableIterableT.iterator in interface java.lang.Iterable<T>iterator in interface CloseableIterable<T>CloseableIterator.