Evaluating Software Design Patterns
— the "Gang of Four" patterns implemented in Java 6

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

Nested Class Summary
 
Nested classes/interfaces inherited from interface dk.rode.thesis.meta.model.Sequence
Sequence.State
 
Method Summary
<P> void
accept(SequenceValueVisitor<P> visitor, P argument)
          Visits this visitable sequence using the value visitor supplied as visitor.
 
Methods inherited from interface dk.rode.thesis.meta.model.Sequence
bounded, consistent, copy, current, next, reset, state, unique
 
Methods inherited from interface dk.rode.thesis.strategy.Stringable
getStringablePolicy, toString
 

Method Detail

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)

Gunni Rode / rode.dk

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.