Class IntArrayIterable

java.lang.Object
org.codehaus.groovy.util.IntArrayIterable
All Implemented Interfaces:
Iterable<Integer>

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

    • IntArrayIterable

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