public final class EachElement extends Object
| Constructor and Description |
|---|
EachElement()
EachElement instances should NOT be constructed in
standard programming. |
| 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 EachElement()
EachElement instances should NOT be constructed in
standard programming. Instead, the methods of the class should be invoked
statically.
This constructor is public to permit tools that require a JavaBean instance to operate.
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-2013 The Apache Software Foundation. All Rights Reserved.