org.jjoost.collections.iters
Class ArrayIterable<E>

java.lang.Object
  extended by 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

Constructor Summary
ArrayIterable(E... vals)
           
ArrayIterable(E[] vals, int lb, int ub)
           
 
Method Summary
 java.util.Iterator<E> iterator()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ArrayIterable

public ArrayIterable(E... vals)

ArrayIterable

public ArrayIterable(E[] vals,
                     int lb,
                     int ub)
Method Detail

iterator

public java.util.Iterator<E> iterator()
Specified by:
iterator in interface java.lang.Iterable<E>