Package acdp

Interface Table.ValueSwitcher<T>

Type Parameters:
T - The type of the switched value.
Enclosing interface:
Table
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface Table.ValueSwitcher<T>
Provides a new value that depends on the untyped stored value.

The switchValue(java.lang.Object) method of a value switcher is invoked by the Refactor.modifyColumn(java.nio.file.Path, acdp.design.ICipherFactory, java.lang.String, java.lang.String, acdp.Column<T>, acdp.Table.ValueSwitcher<T>) method for each row of the table.

Author:
Beat Hörmann
  • Method Summary

    Modifier and Type
    Method
    Description
    switchValue(Object storedValue)
    Returns the new value for a particular column and for the next row of the table.
  • Method Details

    • switchValue

      T switchValue(Object storedValue)
      Returns the new value for a particular column and for the next row of the table.

      Depending on the concrete implementation, this method may throw an exception not mentioned here.

      Parameters:
      storedValue - The stored value.
      Returns:
      The new value.