|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.natpryce.makeiteasy.sequence.ChainedSequence<T>
T - the type of the valuepublic abstract class ChainedSequence<T>
A sequence of values, each of which is calculated from the previous value in the sequence.
| Constructor Summary | |
|---|---|
ChainedSequence()
|
|
| Method Summary | |
|---|---|
protected abstract T |
firstValue()
Returns the first value in the sequence. |
T |
value()
Donate the value. |
protected abstract T |
valueAfter(T prevValue)
Return the value after a given value. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ChainedSequence()
| Method Detail |
|---|
public T value()
Donor
value in interface Donor<T>protected abstract T firstValue()
protected abstract T valueAfter(T prevValue)
prevValue - the previous value
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||