class SearchThread
extends Object
implements Runnable
Modifier and Type | Field and Description |
---|---|
int |
finish
Finishing index for this thread
|
int |
start
Starting index for this thread
|
String[] |
terms
Terms that this thread needs to evaluate
|
Constructor and Description |
---|
SearchThread(int start,
int finish,
String[] terms)
Constructor for this Thread.
|
Modifier and Type | Method and Description |
---|---|
Word |
findTerm(String term)
Find and return the associated Word object for a given term
|
void |
run() |
public int start
public int finish
public String[] terms
public SearchThread(int start, int finish, String[] terms)
start
- starting index for this threadfinish
- finishing index for this threadterms
- Array of terms to evaluatepublic void run()
run
in interface Runnable
public Word findTerm(String term)
term
- String term to look up in the word table