- All Known Implementing Classes:
AbstractStringList
,StringList
public interface IStringSequence
Typesafe interface to an ordered sequence of strings. An IStringIterator can be retrieved for the
sequence by calling iterator(), the number of Strings in the sequence can be determined by
calling size() and a given String can be retrieved by calling get(int index).
- Author:
- Jonathan Locke
-
Method Details
-
get
Gets a string at a given index in the sequence- Parameters:
index
- The index- Returns:
- The string at the given index
- Throws:
IndexOutOfBoundsException
-
iterator
- Returns:
- Typesafe string iterator
-
size
int size()- Returns:
- Number of strings in this sequence
-