Interface ColumnValueSwapper
public interface ColumnValueSwapper
A semantic interface for use with
Column objects.
This is used to swap values inside of a column. Note that this interface fundamentally mutates the underlying
column. If a column cannot support mutation, it should not return return an implementation of this interface.-
Method Summary
Modifier and TypeMethodDescriptionvoidswapValues(int lhs, int rhs) Swaps the values at the two row ids.
-
Method Details
-
swapValues
void swapValues(int lhs, int rhs) Swaps the values at the two row ids. There is no significant to "right" and "left", it's just easier to name the parameters that way.- Parameters:
lhs- the left-hand-side rowIdrhs- the right-hand-side rowId
-