Module me.tongfei.progressbar
Package me.tongfei.progressbar.wrapped
Class ProgressBarWrappedIterator<T>
- java.lang.Object
-
- me.tongfei.progressbar.wrapped.ProgressBarWrappedIterator<T>
-
- All Implemented Interfaces:
java.lang.AutoCloseable,java.util.Iterator<T>
public class ProgressBarWrappedIterator<T> extends java.lang.Object implements java.util.Iterator<T>, java.lang.AutoCloseableAny iterator whose iteration is tracked by a progress bar.- Since:
- 0.6.0
- Author:
- Tongfei Chen
-
-
Constructor Summary
Constructors Constructor Description ProgressBarWrappedIterator(java.util.Iterator<T> underlying, ProgressBar pb)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()ProgressBargetProgressBar()booleanhasNext()Tnext()voidremove()
-
-
-
Constructor Detail
-
ProgressBarWrappedIterator
public ProgressBarWrappedIterator(java.util.Iterator<T> underlying, ProgressBar pb)
-
-
Method Detail
-
getProgressBar
public ProgressBar getProgressBar()
-
hasNext
public boolean hasNext()
- Specified by:
hasNextin interfacejava.util.Iterator<T>
-
remove
public void remove()
- Specified by:
removein interfacejava.util.Iterator<T>
-
close
public void close()
- Specified by:
closein interfacejava.lang.AutoCloseable
-
-