Class StringListImpl

    • Field Detail

      • EMPTY_LIST

        public static final StringListImpl EMPTY_LIST
        An immutable empty list.
    • Constructor Detail

      • StringListImpl

        public StringListImpl​(Vector v)
      • StringListImpl

        public StringListImpl​(String[] array,
                              int length)
        Construct an XSObjectList implementation
        Parameters:
        array - the data array
        length - the number of elements
    • Method Detail

      • getLength

        public int getLength()
        The number of Objects in the list. The range of valid child node indices is 0 to length-1 inclusive.
        Specified by:
        getLength in interface StringList
      • contains

        public boolean contains​(String item)
        Checks if the GenericString item is a member of this list.
        Specified by:
        contains in interface StringList
        Parameters:
        item - GenericString whose presence in this list is to be tested.
        Returns:
        True if this list contains the GenericString item.
      • item

        public String item​(int index)
        Description copied from interface: StringList
        Returns the indexth item in the collection or null if index is greater than or equal to the number of objects in the list. The index starts at 0.
        Specified by:
        item in interface StringList
        Parameters:
        index - index into the collection.
        Returns:
        The GenericString at the indexth position in the StringList, or null if the index specified is not valid.