Class DataColumnCollection

    • Method Detail

      • get

        public DataColumn get​(String columnName)
        Gets the column with the specified name, or null if the name if not found.
        Parameters:
        columnName - The name to find.
        Returns:
        The DataColumn instance with the specified name or null if not found.
      • add

        public DataColumn add​(String columnName,
                              Class dataType)
        Adds a new DataColumn to the collection.
        Parameters:
        columnName - The name of the new column.
        dataType - The data type for the new column.
        Returns:
        The new DataColumn instance.
      • indexOf

        public int indexOf​(String columnName)
        Gets the index of the column with the given name.
      • get

        public DataColumn get​(int index)
        Gets the DataColumn at the given index.
        Specified by:
        get in interface List<DataColumn>
        Specified by:
        get in class AbstractList<DataColumn>
        Parameters:
        index - The zero based index for the column to retrieve.
        Returns:
        The DataColumn at the specified index.
      • remove

        public DataColumn remove​(int index)
        Removes the DataColumn at the given index.
        Specified by:
        remove in interface List<DataColumn>
        Overrides:
        remove in class AbstractList<DataColumn>
        Parameters:
        index - The zero based index of the column to remove.
        Returns:
        The DataColumn instance that was removed.
      • add

        public void add​(int index,
                        DataColumn element)
        Adds a DataColumn instance at the given index.
        Specified by:
        add in interface List<DataColumn>
        Overrides:
        add in class AbstractList<DataColumn>
        Parameters:
        index - The zero based index.
        element - The column to add.