Package org.organicdesign.fp.xform
Class Xform.RunList
- java.lang.Object
-
- org.organicdesign.fp.xform.Xform.RunList
-
- All Implemented Interfaces:
java.lang.Iterable
protected static class Xform.RunList extends java.lang.Object implements java.lang.IterableA RunList is a list of Operations "compiled" from an Xform. It contains an Iterable data source (or some day and array source or List source) and a List of Operation op-codes. A RunList is also a SourceProvider, since the output of one transform can be the input to another. FlatMap is implemented that way. Notice that there are almost no generic types used here: Since the input could be one type, and each map or flatmap operation could change that to another type. For speed, we ignore all that in the "compiled" version and just use Objects and avoid any wrapping or casting.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Iteratoriterator()static Xform.RunListof(Xform.RunList prv, java.lang.Iterable src)
-
-
-
Method Detail
-
of
public static Xform.RunList of(Xform.RunList prv, java.lang.Iterable src)
-
iterator
public java.util.Iterator iterator()
- Specified by:
iteratorin interfacejava.lang.Iterable
-
-