|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.ericaro.neoitertools.generators.ZipGenerator<T>
public class ZipGenerator<T>
an Generator of Pairs, where the i-th couple contains the i-th
element from each of the argument Generator. The returned Generator is
truncated in length to the length of the shortest argument sequence.
Due to static typing of java, it is not possible to provide a generic length
of Generator and at the same time provide mixed-type tuples.
| Constructor Summary | |
|---|---|
ZipGenerator(java.util.List<Generator<T>> generators)
|
|
| Method Summary | |
|---|---|
java.util.List<T> |
next()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ZipGenerator(java.util.List<Generator<T>> generators)
| Method Detail |
|---|
public java.util.List<T> next()
next in interface Generator<java.util.List<T>>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||