ar.com.ktulu.dict
Class StrategyMatches
java.lang.Object
|
+--ar.com.ktulu.dict.AbstractMatches
|
+--ar.com.ktulu.dict.StrategyMatches
- All Implemented Interfaces:
- Matches
- public class StrategyMatches
- extends AbstractMatches
List of results returned by match(String, Strategy).
- Author:
- Luis Parravicini
- See Also:
Database.match(String, Strategy),
Strategy
|
Field Summary |
(package private) int |
idx
|
(package private) java.util.ArrayList |
matches
|
|
Method Summary |
protected int |
countMatches()
|
boolean |
hasNext()
Returns true there are more elements. |
Definition |
next()
Returns the definition of the next word in the collection. |
java.lang.String |
nextWord()
Returns the next word definition in the collection. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
idx
int idx
matches
java.util.ArrayList matches
StrategyMatches
public StrategyMatches(Database db,
java.text.CollationKey word,
java.util.ArrayList results)
countMatches
protected int countMatches()
hasNext
public boolean hasNext()
- Description copied from interface:
Matches
- Returns
true there are more elements.
- Specified by:
hasNext in interface Matches- Specified by:
hasNext in class AbstractMatches
next
public Definition next()
throws DatabaseException
- Description copied from interface:
Matches
- Returns the definition of the next word in the collection.
- Specified by:
next in interface Matches- Specified by:
next in class AbstractMatches
DatabaseException
nextWord
public java.lang.String nextWord()
- Description copied from interface:
Matches
- Returns the next word definition in the collection.
- Specified by:
nextWord in interface Matches- Specified by:
nextWord in class AbstractMatches