almost.functional.utils
T
- the type of the array elements.public class ArrayIterable<T> extends java.lang.Object implements java.lang.Iterable<T>
Modifier and Type | Class and Description |
---|---|
static class |
ArrayIterable.ArrayIterator<D> |
Constructor and Description |
---|
ArrayIterable(T... data)
Basic constructor.
|
Modifier and Type | Method and Description |
---|---|
java.util.Iterator<T> |
iterator() |
static <T> ArrayIterable<T> |
newIterable(T... data)
Factory function to create an iterable over an array of T.
|
public ArrayIterable(T... data)
data
- array of type Tpublic static <T> ArrayIterable<T> newIterable(T... data)
T
- the type of the elements in the arraydata
- the array of type T