Package org.apache.wicket.util.string
Interface IStringSequence
-
- All Known Implementing Classes:
AbstractStringList,StringList
public interface IStringSequenceTypesafe 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 java.lang.Stringget(int index)Gets a string at a given index in the sequenceIStringIteratoriterator()intsize()
-
-
-
Method Detail
-
get
java.lang.String get(int index) throws java.lang.IndexOutOfBoundsExceptionGets a string at a given index in the sequence- Parameters:
index- The index- Returns:
- The string at the given index
- Throws:
java.lang.IndexOutOfBoundsException
-
iterator
IStringIterator iterator()
- Returns:
- Typesafe string iterator
-
size
int size()
- Returns:
- Number of strings in this sequence
-
-