dk.rode.thesis.visitor
Interface ValueVisitableSequence<E>
- Type Parameters:
E
- The type of values delivered by this sequence.
- All Superinterfaces:
- Copyable<Sequence<E>>, Sequence<E>, StrictCopyable<Sequence<E>>, Stringable<Sequence<E>>
- All Known Implementing Classes:
- AbstractVisitableSequence, DateValuedVisitableSequence, IntegerValuedVisitableSequence, ReflectiveVisitableSequence, StringValuedVisitableSequence, VisitableCompositeSequence, VisitableLongSequence, VisitableRandomSequence, VisitableReversiblePrimeSequence
@Participant(value="Element")
public interface ValueVisitableSequence<E>
- extends Sequence<E>
A value visitable sequence allows visitation
by value
visitors.
- Author:
- Gunni Rode / rode.dk
- See Also:
SequenceValueScanner
accept
<P> void accept(SequenceValueVisitor<P> visitor,
P argument)
- Visits this visitable sequence using the
value
visitor supplied
as visitor
.
- Type Parameters:
P
- The type of visitor-supplied argument. Use Void
for visitors that do not need an additional argument.- Parameters:
visitor
- The visitor; never null.argument
- A context supplied argument, if any.- See Also:
SequenceValueScanner.scan(ValueVisitableSequence, SequenceValueVisitor, Object)
Feel free to use and/or modify the Java 6 source code developed for this thesis AT YOUR OWN RISK, but note that the source code comes WITHOUT ANY — and I do mean WITHOUT ANY — form of warranty WHAT SO EVER!
The original thesis and source code are available at rode.dk/thesis.