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

java.lang.Object
  extended by org.shapelogic.streams.BaseCommonStream<E>
      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, LazyCalc<E>, RecursiveContext, 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
_list
 
Fields inherited from class org.shapelogic.streams.BaseCommonStream
_context, _current, _dirty, _last, _maxLast, _name, _nullLegalValue, _parentContext, _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, setLastFromInput, setList
 
Methods inherited from class org.shapelogic.streams.BaseListCommonStream
calcAddNext, get, getCurrentSize, hasNext, hasNextBase, isCached, isRandomAccess, iterator, next
 
Methods inherited from class org.shapelogic.streams.BaseCommonStream
getContext, getInContext, getIndex, getLast, getMaxLast, getName, getParentContext, getValue, isDeterministic, isDirty, isNullLegalValue, remove, setMaxLast, setNullLegalValue, setup
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.shapelogic.streams.NumberedStream
getIndex, getLast, getMaxLast, setMaxLast
 
Methods inherited from interface org.shapelogic.calculation.LazyCalc
isDirty, setup
 
Methods inherited from interface org.shapelogic.calculation.CalcValue
getValue
 
Methods inherited from interface java.util.Iterator
remove
 

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