All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class rpi.goldsd.container.AlphabetSequence

java.lang.Object
   |
   +----rpi.goldsd.container.AlphabetSequence

public class AlphabetSequence
extends Object
implements Sequence
The AlphabetSequence class implements the Sequence interface by providing sequence() methods that generate enumerations of Char objects. Both uppercase and lowercase letters may be represented.

Version:
1.0, 4/16/98
Author:
David Goldschmidt
See Also:
Sequence

Constructor Index

 o AlphabetSequence()

Method Index

 o sequence()
Returns an enumeration of sequential characters starting at 'a' and ending at 'z'.
 o sequence(char)
Returns an enumeration of sequential characters starting at the given c value.
 o sequence(Object)
Returns an enumeration of sequential characters starting at the given start character.

Constructors

 o AlphabetSequence
 public AlphabetSequence()

Methods

 o sequence
 public Enumeration sequence()
Returns an enumeration of sequential characters starting at 'a' and ending at 'z'.

Returns:
an enumeration of sequential Char objects with values starting at 'a' and ending at 'z'.
 o sequence
 public Enumeration sequence(char c)
Returns an enumeration of sequential characters starting at the given c value.

Parameters:
c - the start of the generated sequence.
Returns:
an enumeration of sequential Char objects starting at the value of c.
 o sequence
 public Enumeration sequence(Object startValue) throws IllegalArgumentException
Returns an enumeration of sequential characters starting at the given start character. The sequence continues to either 'z' or 'Z', depending on the given start character.

Parameters:
startValue - the Char object representing the start of the generated sequence.
Returns:
an enumeration of sequential Char objects.
Throws: IllegalArgumentException
if the startValue argument is not of type Char, or if the given Char is not in a valid range 'a'-'z' or 'A'-'Z'.

All Packages  Class Hierarchy  This Package  Previous  Next  Index