/** Returns the next object and advances the iterator. */ @Override public Object next() { Object retval = this.nextObject; advance(); return retval; }
/** Constructs a new iterator that wraps the supplied iterator. */ public PeekableIterator(Iterator<Object> iterator) { this.iterator = iterator; advance(); }
/** Returns the next object and advances the iterator. */ @Override public Object next() { Object retval = this.nextObject; advance(); return retval; }
/** Constructs a new iterator that wraps the supplied iterator. */ public PeekableIterator(Iterator<Object> iterator) { this.iterator = iterator; advance(); }
/** Constructs a new iterator that wraps the supplied iterator. */ public PeekableIterator(Iterator<Object> iterator) { this.iterator = iterator; advance(); }
/** Returns the next object and advances the iterator. */ public Object next() { Object retval = this.nextObject; advance(); return retval; }