|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.google.gwt.benchmarks.client.impl.IterableAdapter
public class IterableAdapter
Provides convenience methods for adapting various values to the Iterable interface.
| Constructor Summary | |
|---|---|
IterableAdapter()
|
|
| Method Summary | ||
|---|---|---|
static
|
toIterable(java.lang.Iterable<T> iterable)
Returns iterable as itself. |
|
static
|
toIterable(T[] array)
Returns an Iterable from an array. |
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IterableAdapter()
| Method Detail |
|---|
public static <T> java.lang.Iterable<T> toIterable(T[] array)
Iterable from an array.
array - a not null array
Iterable that wraps the arraypublic static <T> java.lang.Iterable<T> toIterable(java.lang.Iterable<T> iterable)
iterable as itself. Useful for code-gen situations.
iterable - a maybe null Iterable
iterable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||