Package acdp
Interface Table.ValueChanger<T>
- Type Parameters:
T
- The type of the 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.
Provides a new value that depends on the stored value.
The changeValue(T)
method of a value changer is invoked by the
Table.updateAllChangeValues(acdp.Column<T>, acdp.Table.ValueChanger<T>)
method for each row of the table.
If you do not need to know the stored values then implement the Table.ValueSupplier
interface rather than this interface.
- Author:
- Beat Hörmann
-
Method Summary
Modifier and TypeMethodDescriptionchangeValue
(T storedValue) Returns the new value for a particular column and for the next row of the table.
-
Method Details
-
changeValue
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.
-