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


public interface InputStream1<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
 Stream<In> getInputStream()
          Stream that this stream is connected to.
 E invoke(In input)
          Closure to calculated 1 individual element based on index and input for the same index.
 

Method Detail

invoke

E invoke(In input)
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

getInputStream

Stream<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 © 2008. All Rights Reserved.