V - the typepublic class ProgressIterator<V> extends Object implements Iterator<V>, ProgressObservable
The returned progress percentage will always be between 0 or 1 (inclusive). If the iterator returns more entries than the total count, then 100% will be returned for the progress.
| Modifier and Type | Method and Description |
|---|---|
static <V> ProgressIterator<V> |
create(Iterator<V> iterator,
int count)
Create a new instance.
|
static <V> ProgressIterator<V> |
create(List<V> list)
Create a new instance from a list.
|
Progress |
getProgress()
Get the current percentage of completion.
|
boolean |
hasNext() |
V |
next() |
void |
remove() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemainingpublic Progress getProgress()
ProgressObservablegetProgress in interface ProgressObservablepublic static <V> ProgressIterator<V> create(Iterator<V> iterator, int count)
V - the typeiterator - the iteratorcount - the number of objectspublic static <V> ProgressIterator<V> create(List<V> list)
V - the typelist - a listCopyright © 2015. All Rights Reserved.