org.shapelogic.streams
Interface IndexedInputStream2<In0,In1,E>

All Known Implementing Classes:
BaseListStream2

public interface IndexedInputStream2<In0,In1,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
 In0 getInput0(int index)
          Get numbered element from InputStream
 In1 getInput1(int index)
           
 NumberedStream<In0> getInputStream0()
          Stream that this stream is connected to.
 NumberedStream<In1> getInputStream1()
           
 E invoke(In0 input0, In1 input1, int index)
          Closure to calculated 1 individual element based on index and input for the same index.
 

Method Detail

invoke

E invoke(In0 input0,
         In1 input1,
         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

getInput0

In0 getInput0(int index)
Get numbered element from InputStream


getInput1

In1 getInput1(int index)

getInputStream0

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


getInputStream1

NumberedStream<In1> getInputStream1()


Copyright © 2009. All Rights Reserved.