O
- the type of the objectpublic final class EachWithObjectIterator<E,O>
extends java.lang.Object
implements java.util.Iterator<java.util.Map.Entry<E,O>>
EachWithObjectIterator
iterates each element with an object.Constructor and Description |
---|
EachWithObjectIterator(java.util.Iterator<? extends E> iter,
O obj)
Creates an
EachWithObjectIterator . |
public EachWithObjectIterator(java.util.Iterator<? extends E> iter, O obj)
EachWithObjectIterator
.iter
- an Iteratorobj
- an objectjava.lang.NullPointerException
- if iter or obj is null