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

Interface SequenceFactory<E,P>

Type Parameters:
E - The type of values delivered by the created sequences.
P - The type of argument required in the creation process of sequences. Use Void if no arguments are required.
All Known Implementing Classes:
PrototypicalSequenceFactory, StandardFactory

public interface SequenceFactory<E,P>

A sequence factory provides a general creation method to create initialised sequences in a single step.

The type of created sequences and the arguments used in the creation process is specific to the implementation.

Gunni Rode / rode.dk

Method Summary
 Sequence<E> createSequence(P argument)
          Creates a new initialised sequence instance.

Method Detail


Sequence<E> createSequence(P argument)
Creates a new initialised sequence instance.

argument - A context supplied argument to use in creation process, if any.
A new sequence instance; never null.

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.