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

public Class IntArrayIterable

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

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

Field Summary

Modifier and TypeField and Description
private final int[]

Constructor Summary

AccessConstructor and Description
public
IntArrayIterable(int[] array)

Method Summary

Modifier and TypeMethod and Description
public Iterator<Integer>
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 int[] array

Constructor Detail

IntArrayIterableback to summary
public IntArrayIterable(int[] array)

Method Detail

iteratorback to summary
public Iterator<Integer> iterator()

Implements java.lang.Iterable.iterator.

Doc from java.lang.Iterable.iterator.

Returns an iterator over elements of type T.

Returns:Iterator<Integer>

an Iterator.

Annotations
@Override