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 Detail

      • get

        java.lang.String get​(int index)
                      throws java.lang.IndexOutOfBoundsException
        Gets a string at a given index in the sequence
        Parameters:
        index - The index
        Returns:
        The string at the given index
        Throws:
        java.lang.IndexOutOfBoundsException
      • size

        int size()
        Returns:
        Number of strings in this sequence