ca.odell.glazedlists
Interface SequenceList.Sequencer<E>
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
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.
|
next
public E next(E value)
Given a sequencable value
, produce the next value
in the sequence such that value
is now included in the
sequence.
value
- a sequencable value
- the next value in the sequence such that
value
would be included within the bounds of the sequence
previous
public E previous(E value)
Given a sequencable value
, produce the previous value
in the sequence such that value
is now included in the
sequence.
value
- a sequencable value
- the previous value in the sequence such that
value
would be included within the bounds of the sequence
Glazed Lists, Copyright © 2003 publicobject.com, O'Dell Engineering.
Documentation build by pbuilder at 2009-07-14 22:05