Interface Searchable

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      int get​(int row, int col)
      This should get an integer value given a column and row.
      int length()
      This function should return the total number of rows in a searchable table.
    • Method Detail

      • get

        int get​(int row,
                int col)
        This should get an integer value given a column and row. The binary search function only searches columns containing integers for a value.
        Parameters:
        row - The row in the table.
        col - The column in the row to return.
        Returns:
        The value at 'col' in 'row'.
      • length

        int length()
        This function should return the total number of rows in a searchable table. This is normally just the length of the array.
        Returns:
        The number of elements that can be searched.