|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.shapelogic.streams.NamedNumberedStreamLazySetup<E>
@Deprecated public class NamedNumberedStreamLazySetup<E>
Get a Named Stream out of the context.
With lazy setup, so the input stream is only found when you start to use the
values in the stream.
Last resort to get a reference to a stream that is not yet available.
Currently not used hence it is deprecated, but it could be useful.
Field Summary | |
---|---|
protected NumberedStream<E> |
_inputStream
Deprecated. |
protected java.lang.String |
_name
Deprecated. |
protected boolean |
_setup
Deprecated. |
Constructor Summary | |
---|---|
NamedNumberedStreamLazySetup(java.lang.String name)
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. |
int |
getLast()
Deprecated. Last possible element. |
int |
getMaxLast()
Deprecated. Manually set max value for last possible element. |
java.lang.String |
getName()
Deprecated. Not sure if Name is the best choice. |
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 |
boolean |
isSetup()
Deprecated. |
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 _name
protected NumberedStream<E> _inputStream
protected boolean _setup
Constructor Detail |
---|
public NamedNumberedStreamLazySetup(java.lang.String name)
Method Detail |
---|
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>
setup
in interface SetupFlagged
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>
public boolean isSetup()
isSetup
in interface SetupFlagged
public java.lang.String getName()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |