Class ArrayIterable<T>

java.lang.Object
org.codehaus.groovy.util.ArrayIterable<T>
All Implemented Interfaces:
Iterable<T>

public class ArrayIterable<T> extends Object implements Iterable<T>
Allows an array to be used where an Iterable is expected.
Since:
3.0.8
  • Constructor Details

    • ArrayIterable

      public ArrayIterable(T[] array)
      Creates an iterable view that traverses the supplied array in index order.
      Parameters:
      array - the backing array to iterate
  • Method Details