Package org.apache.wicket.util.string
Interface IStringSequence
-
- 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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
get(int index)
Gets a string at a given index in the sequenceIStringIterator
iterator()
int
size()
-
-
-
Method Detail
-
get
String get(int index) throws IndexOutOfBoundsException
Gets a string at a given index in the sequence- Parameters:
index
- The index- Returns:
- The string at the given index
- Throws:
IndexOutOfBoundsException
-
iterator
IStringIterator iterator()
- Returns:
- Typesafe string iterator
-
size
int size()
- Returns:
- Number of strings in this sequence
-
-