Interface KeyedValues2D<R extends Comparable<R>,​C extends Comparable<C>>

    • Method Detail

      • getRowKey

        R getRowKey​(int row)
        Returns the row key for a given index.
        Parameters:
        row - the row index (zero-based).
        Returns:
        The row key.
        Throws:
        IndexOutOfBoundsException - if row is out of bounds.
      • getRowIndex

        int getRowIndex​(R key)
        Returns the row index for a given key.
        Parameters:
        key - the row key.
        Returns:
        The row index, or a negative value if the key is unrecognised.
      • getRowKeys

        List<RgetRowKeys()
        Returns the row keys.
        Returns:
        The keys.
      • getColumnKey

        C getColumnKey​(int column)
        Returns the column key for a given index.
        Parameters:
        column - the column index (zero-based).
        Returns:
        The column key.
        Throws:
        IndexOutOfBoundsException - if row is out of bounds.
      • getColumnIndex

        int getColumnIndex​(C key)
        Returns the column index for a given key.
        Parameters:
        key - the column key.
        Returns:
        The column index, or -1 if the key is unrecognised.
      • getValue

        Number getValue​(R rowKey,
                        C columnKey)
        Returns the value associated with the specified keys.
        Parameters:
        rowKey - the row key (null not permitted).
        columnKey - the column key (null not permitted).
        Returns:
        The value.
        Throws:
        UnknownKeyException - if either key is not recognised.