Interface IModifiableByName<V,R>

All Superinterfaces:
IModifiable<Integer,V,R>, IModifiableByIndex<V,R>
All Known Subinterfaces:
IModifiableByColumn<R>
All Known Implementing Classes:
DataColumnCollection

public interface IModifiableByName<V,R> extends IModifiableByIndex<V,R>
IModifiableByName. Modifiable, with additional string (name) indexer. Created by Martin Cooper on 15/07/2017.
  • Method Summary

    Modifier and Type
    Method
    Description
    io.vavr.control.Try<R>
    insert(String itemName, V value)
    Inserts an item after an existing item.
    io.vavr.control.Try<R>
    remove(String itemName)
    Removes a named item.
    io.vavr.control.Try<R>
    replace(String itemName, V value)
    Replaces the old item with the new item.

    Methods inherited from interface com.github.martincooper.datatable.IModifiable

    add, insert, remove, replace
  • Method Details

    • replace

      io.vavr.control.Try<R> replace(String itemName, V value)
      Replaces the old item with the new item.
      Parameters:
      itemName - The item to be replaced.
      value - The new item.
      Returns:
      Returns a new collection with the item replaced.
    • insert

      io.vavr.control.Try<R> insert(String itemName, V value)
      Inserts an item after an existing item.
      Parameters:
      itemName - The item to be inserted after.
      value - The new item.
      Returns:
      Returns a new collection with the item inserted.
    • remove

      io.vavr.control.Try<R> remove(String itemName)
      Removes a named item.
      Parameters:
      itemName - The item to be removed.
      Returns:
      Returns a new collection with the item removed.