org.shapelogic.streams
Interface IndexedInputStream1<In,E>

All Known Implementing Classes:
BaseListFilterStream, BaseListIndexedStream1, ListCalcIndexStream1, PredicateListFilterStream

public interface IndexedInputStream1<In,E>

Universal calculation and logic unit. This is going to replace the current Calc, so this should probably just be renamed to Calc or LazyCalc. Should I assume that null means absent of value? That seems a little harsh.

Author:
Sami Badawi

Method Summary
 In getInput(int index)
          Get numbered element from InputStream
 NumberedStream<In> getInputStream()
          Stream that this stream is connected to.
 E invoke(In input, int index)
          Closure to calculated 1 individual element based on index and input for the same index.
 

Method Detail

invoke

E invoke(In input,
         int index)
Closure to calculated 1 individual element based on index and input for the same index. Should later just call the invoke on the closure. Maybe this should be moved up later.

Parameters:
index - of element in list

getInput

In getInput(int index)
Get numbered element from InputStream


getInputStream

NumberedStream<In> getInputStream()
Stream that this stream is connected to. What if the Range is of different type? I think that maybe I can relax this later.



Copyright © 2009. All Rights Reserved.