@Test public void testNoIterators() { List<Iterator<Integer>> iterators = Lists.newArrayList(); MergeIterator<Integer> merged = new MergeIterator<Integer>(iterators, integerComparator); assertFalse(merged.hasNext()); }
@Override public boolean hasNext() { return nextValue != null; }
MergeIterator implements Iterator<T> { @Override public boolean hasNext() { return nextValue != null; } }
MergeIterator implements Iterator<T> { @Override public boolean hasNext() { return nextValue != null; } private  MergeIterator(Comparator<? super T> comparator, int size);  MergeIterator(Comparator<? super T> comparator, @SuppressWarnings("unchecked") Iterator<T>... iterators);  MergeIterator(List<Iterator<T>> iterators, Comparator<? super T> comparator); }
MergeIterator implements Iterator<T> { @Override public boolean hasNext() { return nextValue != null; } private  MergeIterator(Comparator<? super T> comparator, int size);  MergeIterator(Comparator<? super T> comparator, @SuppressWarnings("unchecked") Iterator<T>... iterators);  MergeIterator(List<Iterator<T>> iterators, Comparator<? super T> comparator); @Override boolean hasNext(); @Override T next(); }
MergeIterator implements Iterator<T> { @Override public boolean hasNext() { return nextValue != null; } private  MergeIterator(Comparator<? super T> comparator, int size);  MergeIterator(Comparator<? super T> comparator, @SuppressWarnings("unchecked") Iterator<T>... iterators);  MergeIterator(List<Iterator<T>> iterators, Comparator<? super T> comparator); @Override boolean hasNext(); @Override T next();  }