public final class DataColumnCollection extends AbstractList<DataColumn>
modCount
Modifier and Type | Method and Description |
---|---|
void |
add(int index,
DataColumn element)
Adds a DataColumn instance at the given index.
|
DataColumn |
add(String columnName,
Class dataType)
Adds a new DataColumn to the collection.
|
void |
clear()
Removes all columns for the collection.
|
DataColumn |
get(int index)
Gets the DataColumn at the given index.
|
DataColumn |
get(String columnName)
Gets the column with the specified name, or null if the name if not found.
|
int |
indexOf(String columnName)
Gets the index of the column with the given name.
|
DataColumn |
remove(int index)
Removes the DataColumn at the given index.
|
int |
size()
Gets the number of columns in the collection.
|
add, addAll, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, removeRange, set, subList
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
addAll, contains, containsAll, isEmpty, remove, removeAll, replaceAll, retainAll, sort, spliterator, toArray, toArray
parallelStream, removeIf, stream
public DataColumn get(String columnName)
columnName
- The name to find.public DataColumn add(String columnName, Class dataType)
columnName
- The name of the new column.dataType
- The data type for the new column.public int indexOf(String columnName)
public DataColumn get(int index)
get
in interface List<DataColumn>
get
in class AbstractList<DataColumn>
index
- The zero based index for the column to retrieve.public DataColumn remove(int index)
remove
in interface List<DataColumn>
remove
in class AbstractList<DataColumn>
index
- The zero based index of the column to remove.public void add(int index, DataColumn element)
add
in interface List<DataColumn>
add
in class AbstractList<DataColumn>
index
- The zero based index.element
- The column to add.public void clear()
clear
in interface Collection<DataColumn>
clear
in interface List<DataColumn>
clear
in class AbstractList<DataColumn>
public int size()
size
in interface Collection<DataColumn>
size
in interface List<DataColumn>
size
in class AbstractCollection<DataColumn>
Copyright © 2023. All rights reserved.