Class ArrayIterable<E>

  • Type Parameters:
    E - the type of elements returned by the iterable's iterator
    All Implemented Interfaces:
    Iterable<E>

    public class ArrayIterable<E>
    extends Object
    implements Iterable<E>
    An ArrayIterable provides an Iterable for an array of objects of type E.
    See Also:
    ArrayIterator, ArrayListIterable
    • Constructor Detail

      • ArrayIterable

        public ArrayIterable​(E... array)
        Construct an iterable for the specified array.
      • ArrayIterable

        public ArrayIterable​(E[] array,
                             int start)
        Construct an iterable for the specified array, starting at the specified start index and continuing for the rest of the array.
      • ArrayIterable

        public ArrayIterable​(E[] array,
                             int start,
                             int length)
        Construct an iterable for the specified array, starting at the specified start index and continuing for the specified length.