Interface Searchable
-
- All Known Implementing Classes:
Angle
,Atom
,Bndk
,Bond
,CovRad
,Dfsb
,HerschbachLaurie
,OutOfPlane
,Stbn
,Torsion
,VanDerWaals
public interface Searchable
Interface that must be implemented for array objects that can be searched by the binary search function.
-
-
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.
-
-