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 Detail

      • 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 rowId
        rhs - the right-hand-side rowId