public abstract class SearchArrays<T,K> extends SearchBase<T,K,T[]>
| Constructor and Description |
|---|
SearchArrays() |
| Modifier and Type | Method and Description |
|---|---|
protected int |
getCount(T[] list)
Gets the count of items in the list.
|
protected T |
getValue(T[] list,
int index)
Used to access list values by index in the list.
|
binarySearch, compareToprotected int getCount(T[] list)
SearchBasegetCount in class SearchBase<T,K,T[]>list - whose is to be returnedprotected T getValue(T[] list, int index) throws IOException
SearchBasegetValue in class SearchBase<T,K,T[]>list - whose value is to be returnedindex - of the value to returnIOException - if there was a problem accessing data file.Copyright © 2015 51Degrees. All rights reserved.