| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
int |
hashCode() |
Iterator<T> |
iterator() |
static <T> SimpleIterable<T> |
of(Iterable<T> iterable)
Creates a
SimpleIterable that iterates through the contents of the iterable passed as argument |
static <T> SimpleIterable<T> |
of(T... array)
Creates a
SimpleIterable that iterates through the contents of the array passed as argument |
Collection<T> |
toCollection()
Copies the iterable into a new collection
|
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic final Collection<T> toCollection()
public static <T> SimpleIterable<T> of(Iterable<T> iterable)
SimpleIterable that iterates through the contents of the iterable passed as argumentT - iterable - public static <T> SimpleIterable<T> of(T... array)
SimpleIterable that iterates through the contents of the array passed as argumentT - array - Copyright © 2017. All rights reserved.