|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public static interface SequenceList.Sequencer<E>
A Sequencer defines the logic required to calculate the previous and
next sequence values given any value. It is important to note that the
arguments passed to previous(E)
and next(E)
will not always
be sequence values themselves. For example if a Sequencer is contains
logic to produce a sequence of numbers evenly divisible by 2, it must
handle returning the next and previous even number relative to
any integer. So the Sequencer logic must produce:
previous(5)
returns 4
previous(6)
returns 4
next(5)
returns 6
next(4)
returns 6
Method Summary | |
---|---|
E |
next(E value)
Given a sequencable value , produce the next value
in the sequence such that value is now included in the
sequence. |
E |
previous(E value)
Given a sequencable value , produce the previous value
in the sequence such that value is now included in the
sequence. |
Method Detail |
---|
E previous(E value)
value
, produce the previous value
in the sequence such that value
is now included in the
sequence.
value
- a sequencable value
value
would be included within the bounds of the sequenceE next(E value)
value
, produce the next value
in the sequence such that value
is now included in the
sequence.
value
- a sequencable value
value
would be included within the bounds of the sequence
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |