| 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.shapelogic.streams.NamedNumberedStream<E>
@Deprecated public class NamedNumberedStream<E>
Get a Named Stream out of the context.
The idea is that there should be a stream already and this will create a thin wrapper around it, so now there will be an extra stream, this serves no purpose.
Use factory method StreamFactory.findNumberedStream(String name) instead.
| Field Summary | |
|---|---|
protected  NumberedStream<E> | 
_inputStream
Deprecated.  | 
protected  java.lang.String | 
_key
Deprecated.  | 
| Constructor Summary | |
|---|---|
NamedNumberedStream(java.lang.String key)
Deprecated.  | 
|
| Method Summary | |
|---|---|
 E | 
get(int input)
Deprecated. Get the calculate value for index based on the previous stream.  | 
 int | 
getIndex()
Deprecated. Index of last successfully processed element.  | 
static NumberedStream | 
getInstance(java.lang.String key)
Deprecated.  | 
 int | 
getLast()
Deprecated. Last possible element.  | 
 int | 
getMaxLast()
Deprecated. Manually set max value for last possible element.  | 
 E | 
getValue()
Deprecated. Starts a lazy calculation.  | 
 boolean | 
hasNext()
Deprecated.  | 
 boolean | 
isDirty()
Deprecated. When dirty is false that means that the calculated value can be used  | 
 E | 
next()
Deprecated.  | 
 void | 
remove()
Deprecated.  | 
 void | 
setMaxLast(int maxLast)
Deprecated. Set a max value for last possible element.  | 
 void | 
setup()
Deprecated. Currently not super well define used for 2 purposes: Reset: called from the outside if you want to reuse it init: Called from the inside when calculation start to have everything setup maybe the semantic could work for both? TODO: This should be separated better.  | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
protected java.lang.String _key
protected NumberedStream<E> _inputStream
| Constructor Detail | 
|---|
@Deprecated public NamedNumberedStream(java.lang.String key)
| Method Detail | 
|---|
public static NumberedStream getInstance(java.lang.String key)
public E get(int input)
NumberedStream
get in interface NumberedStream<E>public int getIndex()
NumberedStream
getIndex in interface NumberedStream<E>public int getLast()
NumberedStream
getLast in interface NumberedStream<E>public int getMaxLast()
NumberedStream
getMaxLast in interface NumberedStream<E>public void setMaxLast(int maxLast)
NumberedStream
setMaxLast in interface NumberedStream<E>public boolean isDirty()
LazyCalc
isDirty in interface LazyCalc<E>public void setup()
LazyCalc
setup in interface LazyCalc<E>public E getValue()
CalcValue
getValue in interface CalcValue<E>public boolean hasNext()
hasNext in interface java.util.Iterator<E>public E next()
next in interface java.util.Iterator<E>public void remove()
remove in interface java.util.Iterator<E>
  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||