/guava/android/guava/src/com/google/common/collect/Iterators.java
@CheckForNull private E peekedElement; private boolean hasPeeked;private final Iterator<? extends E> iterator;
private final Iterator<? extends E> iterator; private boolean hasPeeked; @CheckForNull private E peekedElement;
public T nextElement() { return iterator.next(); } }; } private static class PeekingImpl<E extends @Nullable Object> implements PeekingIterator<E> { <extra_id_0> public PeekingImpl(Iterator<? extends E> iterator) { this.iterator = checkNotNull(iterator); } @Override public boolean hasNext() { return hasPeeked || iterator.hasNext();