T - type of result iterationS - type of input iterationpublic abstract class BatchConvertingIterator<S,T> extends java.lang.Object implements CloseableIterator<T>
| Modifier | Constructor and Description |
|---|---|
protected |
BatchConvertingIterator(java.util.Iterator<S> input,
int batchSize) |
protected BatchConvertingIterator(@Nonnull
java.util.Iterator<S> input,
@Nonnegative
int batchSize)
@Nonnull protected abstract java.util.Iterator<T> convert(@Nonnull java.util.Collection<S> input)
public boolean hasNext()
hasNext in interface java.util.Iterator<T>public void remove()
remove in interface java.util.Iterator<T>public void close()
close in interface java.lang.AutoCloseableclose in interface CloseableIterator<T>Copyright © 2013 echocat. All Rights Reserved.