All Packages Class Hierarchy This Package Previous Next Index
Interface rpi.goldsd.container.Sequence
- public interface Sequence
The Sequence interface defines two sequence() methods
to be used to generate enumerations of sequential values. For example,
an IntSequence class may implement this interface and provide
a sequence of integers suitable for establishing a unique set of keys
for a hashtable or other associative container of this package.
As another example, consider an AlphabetSequence class that
implements this interface that provides a sequence of the letters of the
alphabet.
- Version:
- 1.1, 4/16/98
- Author:
- David Goldschmidt
- See Also:
- IntSequence, RandomIntSequence
-
sequence()
- Provides an enumeration of the elements making up a sequence
of values starting at a default start value.
-
sequence(Object)
- Provides an enumeration of the elements making up a sequence
of values starting at the given start value.
sequence
public abstract Enumeration sequence()
- Provides an enumeration of the elements making up a sequence
of values starting at a default start value.
- Returns:
- an enumeration of the elements making up a sequence.
sequence
public abstract Enumeration sequence(Object startValue)
- Provides an enumeration of the elements making up a sequence
of values starting at the given start value.
- Parameters:
- startValue - the starting value of the sequence.
- Returns:
- an enumeration of the elements making up a sequence.
All Packages Class Hierarchy This Package Previous Next Index