E
- the type of the elementspublic final class EachWithIndexIterable<E>
extends java.lang.Object
implements java.lang.Iterable<java.util.Map.Entry<E,java.lang.Integer>>
EachWithIndexIterable
iterates each element with its index.Constructor and Description |
---|
EachWithIndexIterable(java.lang.Iterable<? extends E> iter)
Creates an
EachWithIndexIterable . |
public EachWithIndexIterable(java.lang.Iterable<? extends E> iter)
EachWithIndexIterable
.iter
- an Iterablejava.lang.NullPointerException
- if iter is null