Package: org.codehaus.groovy.util

## [Java] Class LongArrayIterable

- org.codehaus.groovy.util.LongArrayIterable

- All Implemented Interfaces and Traits:
    Iterable

      public class LongArrayIterable
      extends Object
      implements Iterable

  Allows a long array to be used where an Iterable is expected.

  Since:
    3.0.8

- - ### Constructor Summary

    Constructors
    Constructor and description
    `LongArrayIterable(long[] array)` Creates an iterable view that traverses the supplied array in index order.

  - ### Methods Summary

    Methods
    Type Params | Return Type | Name and description
    --- | --- | ---
    `` | `public Iterator<Long>` | `iterator()` Returns an iterator over elements of type `T`. Returns: an Iterator.

  - ### Inherited Methods Summary

    Inherited Methods
    Methods inherited from class | Name
    --- | ---
    `class Object` | `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### public LongArrayIterable(long[] array)

      Creates an iterable view that traverses the supplied array in index order.

      Parameters:
        `array` - the backing array to iterate

  - ### Method Detail

    - #### public Iterator<Long> iterator()

      Returns an iterator over elements of type `T`.

      Returns:
        an Iterator.