Class ArrayIterable<E>

java.lang.Object
edu.uky.ai.util.ArrayIterable<E>
Type Parameters:
E - the kind of element in the array
All Implemented Interfaces:
Iterable<E>

public class ArrayIterable<E> extends Object implements Iterable<E>
An object that allows an array to be treated as Iterable.
Author:
Stephen G. Ware
  • Constructor Details

    • ArrayIterable

      public ArrayIterable(E[] array)
      Constructs a new iterable for the given array.
      Parameters:
      array - the array
  • Method Details