Interface IModifiableByColumn<R>
- All Superinterfaces:
IModifiable<Integer,,IDataColumn, R> IModifiableByIndex<IDataColumn,,R> IModifiableByName<IDataColumn,R>
- All Known Implementing Classes:
DataColumnCollection
IModifiableByColumn. IModifiableByName with additional item (IDataColumn) indexer.
Created by Martin Cooper on 15/07/2017.
-
Method Summary
Modifier and TypeMethodDescriptionio.vavr.control.Try<R>insert(IDataColumn oldColumn, IDataColumn newColumn) Inserts a new column after the specified column.io.vavr.control.Try<R>remove(IDataColumn oldColumn) Removes the specified column.io.vavr.control.Try<R>replace(IDataColumn oldColumn, IDataColumn newColumn) Replaces the old column with the new column.Methods inherited from interface com.github.martincooper.datatable.IModifiable
add, insert, remove, replaceMethods inherited from interface com.github.martincooper.datatable.IModifiableByName
insert, remove, replace
-
Method Details
-
replace
Replaces the old column with the new column.- Parameters:
oldColumn- The column to be replaced.newColumn- The new column.- Returns:
- Returns a new collection with the column replaced.
-
insert
Inserts a new column after the specified column.- Parameters:
oldColumn- The column to be inserted after.newColumn- The new column.- Returns:
- Returns a new collection with the column inserted.
-
remove
Removes the specified column.- Parameters:
oldColumn- The column to be removed.- Returns:
- Returns a new collection with the column removed.
-