org.shapelogic.streams
Class ListCalcStream1<In,E>

java.lang.Object
  extended by org.shapelogic.streams.BaseListCommonStream<E>
      extended by org.shapelogic.streams.BaseListStream1<In,E>
          extended by org.shapelogic.streams.ListCalcStream1<In,E>
All Implemented Interfaces:
java.lang.Iterable<E>, java.util.Iterator<E>, Calc1<In,E>, CalcValue<E>, ContextGettable, InContexts, LazyCalc<E>, InputStream1<In,E>, ListStream<E>, NumberedStream<E>, Stream<E>, StreamProperties

public class ListCalcStream1<In,E>
extends BaseListStream1<In,E>

Make a stream that is using a Calc1 class to do a calculation.
In type does not seem to be used.

Author:
Sami Badawi

Field Summary
protected  Calc1<In,E> _calc
           
 
Fields inherited from class org.shapelogic.streams.BaseListStream1
_inputStream
 
Fields inherited from class org.shapelogic.streams.BaseListCommonStream
_contexts, _current, _dirty, _last, _list, _maxLast, _name, _query, _value
 
Constructor Summary
ListCalcStream1()
           
ListCalcStream1(Calc1<In,E> calc, int maxLast)
           
ListCalcStream1(Calc1<In,E> calc, NumberedStream<In> inputStream)
           
ListCalcStream1(Calc1<In,E> calc, NumberedStream<In> inputStream, int maxLast)
           
 
Method Summary
 E invoke(In input)
           
 
Methods inherited from class org.shapelogic.streams.BaseListStream1
getInput, getInputStream, getList, invokeIndex, setList
 
Methods inherited from class org.shapelogic.streams.BaseListCommonStream
calcAddNext, get, getContext, getContexts, getCurrentSize, getInContext, getIndex, getLast, getMaxLast, getName, getValue, hasNext, hasNextBase, isCached, isContextBased, isDeterministic, isDirty, isRandomAccess, iterator, next, remove, setMaxLast, setup
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_calc

protected Calc1<In,E> _calc
Constructor Detail

ListCalcStream1

public ListCalcStream1(Calc1<In,E> calc,
                       NumberedStream<In> inputStream,
                       int maxLast)

ListCalcStream1

public ListCalcStream1(Calc1<In,E> calc,
                       NumberedStream<In> inputStream)

ListCalcStream1

public ListCalcStream1()

ListCalcStream1

public ListCalcStream1(Calc1<In,E> calc,
                       int maxLast)
Method Detail

invoke

public E invoke(In input)


Copyright © 2008. All Rights Reserved.