public final class EachElement extends Object
| Modifier and Type | Method and Description |
|---|---|
static <E> Generator<E> |
from(E... array)
Get a Generator for each element of an Object[].
|
static <E> Generator<E> |
from(Iterable<? extends E> iterable)
Get a Generator for each element of an Iterable.
|
static <E> Generator<E> |
from(Iterator<? extends E> iter)
Get a Generator for each element of an Iterator.
|
static <K,V> Generator<Map.Entry<K,V>> |
from(Map<? extends K,? extends V> map)
Get a Generator for each entry of a Map.
|
public static <E> Generator<E> from(Iterable<? extends E> iterable)
E - the type of elements held in the input iterable.iterable - to iteratepublic static <K,V> Generator<Map.Entry<K,V>> from(Map<? extends K,? extends V> map)
K - the type of keys maintained by the input map.V - the type of mapped values in the input map.map - to iteratepublic static <E> Generator<E> from(E... array)
E - the type of elements held in the input array.array - to iterateCopyright © 2003–2014 The Apache Software Foundation. All rights reserved.