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

Class EnglishAlphabetSequence

  extended by dk.rode.thesis.meta.model.AbstractSequence<E>
      extended by dk.rode.thesis.meta.model.ArraySequence<String>
          extended by dk.rode.thesis.meta.model.EnglishAlphabetSequence
All Implemented Interfaces:
Sequence<String>, Copyable<Sequence<String>>, StrictCopyable<Sequence<String>>, Stringable<Sequence<String>>
Direct Known Subclasses:

public class EnglishAlphabetSequence
extends ArraySequence<String>

An alphabet sequence for letters in the English alphabet: a though z, lower-cased.

Gunni Rode / rode.dk

Nested Class Summary
Nested classes/interfaces inherited from interface dk.rode.thesis.meta.model.Sequence
Field Summary
private static String[] alphabet
          The letters in the English alphabet.
Fields inherited from class dk.rode.thesis.meta.model.ArraySequence
elements, index
Fields inherited from class dk.rode.thesis.meta.model.AbstractSequence
Constructor Summary
          No-arg constructor.
EnglishAlphabetSequence(EnglishAlphabetSequence sequence)
          Copy constructor.
Method Summary
 EnglishAlphabetSequence copy()
          Returns a copy of this sequence that will start at the same sequence index as this sequence.
Methods inherited from class dk.rode.thesis.meta.model.ArraySequence
bounded, consistent, current, equals, hashCode, next, reset, size, unique
Methods inherited from class dk.rode.thesis.meta.model.AbstractSequence
getStringablePolicy, state, toString, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface dk.rode.thesis.meta.model.Sequence
Methods inherited from interface dk.rode.thesis.strategy.Stringable
getStringablePolicy, toString

Field Detail


private static final String[] alphabet
The letters in the English alphabet.

Constructor Detail


public EnglishAlphabetSequence()
No-arg constructor.


public EnglishAlphabetSequence(EnglishAlphabetSequence sequence)
Copy constructor.

This sequence starts at the current index of sequence.

sequence - The sequence to copy; cannot be null.
NullPointerException - If sequence is null.
Method Detail


public EnglishAlphabetSequence copy()
Description copied from interface: Sequence
Returns a copy of this sequence that will start at the same sequence index as this sequence.

A copy of this sequence; 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.