dk.rode.thesis.meta.model
Class EnglishAlphabetSequence
java.lang.Object
dk.rode.thesis.meta.model.AbstractSequence<E>
dk.rode.thesis.meta.model.ArraySequence<String>
dk.rode.thesis.meta.model.EnglishAlphabetSequence
- All Implemented Interfaces:
- Sequence<String>, Copyable<Sequence<String>>, StrictCopyable<Sequence<String>>, Stringable<Sequence<String>>
- Direct Known Subclasses:
- MemorizableEnglishAlphabetSequence
public class EnglishAlphabetSequence
- extends ArraySequence<String>
An alphabet sequence for letters in the English alphabet:
a though z, lower-cased.
- Author:
- Gunni Rode / rode.dk
|
Field Summary |
private static String[] |
alphabet
The letters in the English alphabet. |
|
Method Summary |
EnglishAlphabetSequence |
copy()
Returns a copy of this sequence that will start at the
same sequence index as this sequence. |
| Methods inherited from interface dk.rode.thesis.meta.model.Sequence |
state |
alphabet
private static final String[] alphabet
- The letters in the English alphabet.
EnglishAlphabetSequence
public EnglishAlphabetSequence()
- No-arg constructor.
EnglishAlphabetSequence
public EnglishAlphabetSequence(EnglishAlphabetSequence sequence)
- Copy constructor.
This sequence starts at the current index of sequence.
- Parameters:
sequence - The sequence to copy; cannot be null.
- Throws:
NullPointerException - If sequence is null.
copy
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.
- Returns:
- A copy of this sequence; never null.
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.