Class LSInputListImpl

    • Field Detail

      • EMPTY_LIST

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

      • LSInputListImpl

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

      • getLength

        public int getLength()
        The number of LSInputs in the list. The range of valid child object indices is 0 to length-1 inclusive.
        Specified by:
        getLength in interface LSInputList
      • item

        public LSInput item​(int index)
        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 LSInputList
        Parameters:
        index - index into the collection.
        Returns:
        The LSInput at the indexth position in the LSInputList, or null if the index specified is not valid.