Top Description Fields Constructors Methods
org.codehaus.groovy.util

public Class ArrayIterable<T>

extends Object
implements Iterable<T>
Class Inheritance
All Implemented Interfaces
java.lang.Iterable
Imports
java.util.Iterator

Allow an array to be used where an Iterable is expected.
Since
3.0.8

Field Summary

Modifier and TypeField and Description
private final T[]

Constructor Summary

AccessConstructor and Description
public
ArrayIterable(T[] array)

Method Summary

Modifier and TypeMethod and Description
public Iterator<T>
iterator()

Implements java.lang.Iterable.iterator.

Returns an iterator over elements of type T.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

arrayback to summary
private final T[] array

Constructor Detail

ArrayIterableback to summary
public ArrayIterable(T[] array)

Method Detail

iteratorback to summary
public Iterator<T> iterator()

Implements java.lang.Iterable.iterator.

Doc from java.lang.Iterable.iterator.

Returns an iterator over elements of type T.

Returns:Iterator<T>

an Iterator.

Annotations
@Override