Class ArrayIterable<T>

java.lang.Object
de.renebergelt.quiterables.iterators.ArrayIterable<T>
Type Parameters:
T - Type of the elements in this Iterable
All Implemented Interfaces:
Iterable<T>

public class ArrayIterable<T> extends Object implements Iterable<T>
Iterable wrapper for arrays Does not work with arrays of primitive types such as int, float, etc.
Author:
René Bergelt
  • Constructor Details

    • ArrayIterable

      public ArrayIterable(T[] array)
      Create a new iterable wrapper for the given array
      Parameters:
      array - The array to wrap
  • Method Details