@Test public void testHasNext() { assertFalse(newIteratorEmpty().hasNext()); assertTrue(newIterator().hasNext()); }
@Override public boolean hasNext() { ensureIterator(); return iterator.hasNext(); }
LazyIterator implements Iterator<T> { @Override public boolean hasNext() { ensureIterator(); return iterator.hasNext(); } }
LazyIterator implements Iterator<T> { @Override public boolean hasNext() { ensureIterator(); return iterator.hasNext(); } LazyIterator(Iterable<? extends T> iterable); }
LazyIterator implements Iterator<T> { @Override public boolean hasNext() { ensureIterator(); return iterator.hasNext(); } LazyIterator(Iterable<? extends T> iterable); @Override boolean hasNext(); @Override T next(); @Override void remove(); }
LazyIterator implements Iterator<T> { @Override public boolean hasNext() { ensureIterator(); return iterator.hasNext(); } LazyIterator(Iterable<? extends T> iterable); @Override boolean hasNext(); @Override T next(); @Override void remove();  }