public class DataColumnCollection extends Object implements IModifiableByColumn<DataTable>, Iterable<IDataColumn>
| Modifier and Type | Method and Description |
|---|---|
io.vavr.control.Try<DataTable> |
add(IDataColumn newColumn)
Adds a IDataColumn to the column collection.
|
int |
count()
The number of columns in the collection.
|
IDataColumn |
get(int index)
Returns the IDataColumn at the specified index.
|
IDataColumn |
get(String columnName)
Returns the IDataColumn by name.
|
io.vavr.control.Try<DataTable> |
insert(IDataColumn currentColumn,
IDataColumn newColumn)
Inserts a new column after the specified column.
|
io.vavr.control.Try<DataTable> |
insert(Integer index,
IDataColumn newColumn)
Inserts a new column at the specified index.
|
io.vavr.control.Try<DataTable> |
insert(String columnName,
IDataColumn newColumn)
Inserts a column after an existing column.
|
Iterator<IDataColumn> |
iterator()
Returns an iterator over elements of type IDataColumn.
|
<U> io.vavr.collection.Seq<U> |
map(Function<? super IDataColumn,? extends U> mapper)
Map implementation for the DataColumnCollection class.
|
io.vavr.control.Try<DataTable> |
remove(IDataColumn columnToRemove)
Removes the specified column.
|
io.vavr.control.Try<DataTable> |
remove(Integer index)
Removes the specified column.
|
io.vavr.control.Try<DataTable> |
remove(String columnName)
Removes a named column.
|
io.vavr.control.Try<DataTable> |
replace(IDataColumn oldColumn,
IDataColumn newColumn)
Replaces the old column with the new column.
|
io.vavr.control.Try<DataTable> |
replace(Integer index,
IDataColumn newColumn)
Replaces the column at the specified index with the new column.
|
io.vavr.control.Try<DataTable> |
replace(String columnName,
IDataColumn newColumn)
Replaces the old column with the new column.
|
io.vavr.control.Try<IDataColumn> |
tryGet(int index)
Returns the IDataColumn at the specified index.
|
io.vavr.control.Try<IDataColumn> |
tryGet(String columnName)
Returns the IDataColumn by name.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic Iterator<IDataColumn> iterator()
iterator in interface Iterable<IDataColumn>public <U> io.vavr.collection.Seq<U> map(Function<? super IDataColumn,? extends U> mapper)
U - Mapped return type.mapper - The map function.public io.vavr.control.Try<IDataColumn> tryGet(int index)
index - The index to return the IDataColumn.public IDataColumn get(int index)
index - The index to return the IDataColumn.public io.vavr.control.Try<IDataColumn> tryGet(String columnName)
columnName - The name of the IDataColumn.public IDataColumn get(String columnName)
columnName - The name of the IDataColumn.public int count()
public io.vavr.control.Try<DataTable> add(IDataColumn newColumn)
add in interface IModifiable<Integer,IDataColumn,DataTable>newColumn - The new columns to add.public io.vavr.control.Try<DataTable> replace(Integer index, IDataColumn newColumn)
replace in interface IModifiable<Integer,IDataColumn,DataTable>index - The index of the item to be replaced.newColumn - The new column.public io.vavr.control.Try<DataTable> insert(Integer index, IDataColumn newColumn)
insert in interface IModifiable<Integer,IDataColumn,DataTable>index - The column index to inserted the column at.newColumn - The new column.public io.vavr.control.Try<DataTable> remove(Integer index)
remove in interface IModifiable<Integer,IDataColumn,DataTable>index - The index of the column to be removed.public io.vavr.control.Try<DataTable> replace(String columnName, IDataColumn newColumn)
replace in interface IModifiableByName<IDataColumn,DataTable>columnName - The column to be replaced.newColumn - The new column.public io.vavr.control.Try<DataTable> insert(String columnName, IDataColumn newColumn)
insert in interface IModifiableByName<IDataColumn,DataTable>columnName - The column to be inserted after.newColumn - The new column.public io.vavr.control.Try<DataTable> remove(String columnName)
remove in interface IModifiableByName<IDataColumn,DataTable>columnName - The name of the column to be removed.public io.vavr.control.Try<DataTable> replace(IDataColumn oldColumn, IDataColumn newColumn)
replace in interface IModifiableByColumn<DataTable>oldColumn - The column to be replaced.newColumn - The new column.public io.vavr.control.Try<DataTable> insert(IDataColumn currentColumn, IDataColumn newColumn)
insert in interface IModifiableByColumn<DataTable>currentColumn - The column to be inserted after.newColumn - The new column.public io.vavr.control.Try<DataTable> remove(IDataColumn columnToRemove)
remove in interface IModifiableByColumn<DataTable>columnToRemove - The column to be removed.Copyright © 2017. All rights reserved.