public abstract class AbstractPeekableIterator<E> extends Object implements PeekableIterator<E>
| Constructor and Description |
|---|
AbstractPeekableIterator() |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
close() |
static <K> Comparator<PeekableIterator<K>> |
getComparator(Comparator<K> comparator) |
abstract E |
getNextInner() |
boolean |
hasNext() |
E |
next() |
E |
peek() |
void |
remove() |
static <T> PeekableIterator<T> |
wrap(Iterator<T> itr) |
static PeekableIterator<String> |
wrapReader(BufferedReader reader) |
public abstract E getNextInner()
public abstract void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionpublic E peek()
peek in interface PeekableIterator<E>public static <T> PeekableIterator<T> wrap(Iterator<T> itr)
public static PeekableIterator<String> wrapReader(BufferedReader reader)
public static <K> Comparator<PeekableIterator<K>> getComparator(Comparator<K> comparator)
Copyright © 2015 The International Internet Preservation Consortium. All Rights Reserved.