Package org.codehaus.groovy.util
Class ArrayIterable<T>
java.lang.Object
org.codehaus.groovy.util.ArrayIterable<T>
- All Implemented Interfaces:
Iterable<T>
Allows an array to be used where an Iterable is expected.
- Since:
- 3.0.8
-
Constructor Summary
ConstructorsConstructorDescriptionArrayIterable(T[] array) Creates an iterable view that traverses the supplied array in index order. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator