org.jjoost.collections.iters
Class ArrayIterable<E>
java.lang.Object
org.jjoost.collections.iters.ArrayIterable<E>
- Type Parameters:
E - the element type
- All Implemented Interfaces:
- java.lang.Iterable<E>
public final class ArrayIterable<E>
- extends java.lang.Object
- implements java.lang.Iterable<E>
This class creates an Iterable (i.e. a class with an iterator() method) from the supplied array
- Author:
- b.elliottsmith
|
Method Summary |
java.util.Iterator<E> |
iterator()
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ArrayIterable
public ArrayIterable(E... vals)
ArrayIterable
public ArrayIterable(E[] vals,
int lb,
int ub)
iterator
public java.util.Iterator<E> iterator()
- Specified by:
iterator in interface java.lang.Iterable<E>