ar.com.ktulu.dict
Class DefineMatches
java.lang.Object
|
+--ar.com.ktulu.dict.AbstractMatches
|
+--ar.com.ktulu.dict.DefineMatches
- All Implemented Interfaces:
- Matches
- public class DefineMatches
- extends AbstractMatches
List of results returned by define(String).
- Author:
- Luis Parravicini
- See Also:
Database.define(String)
|
Field Summary |
(package private) int |
idx
|
(package private) Key[] |
keys
|
|
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
keys
Key[] keys
DefineMatches
protected DefineMatches(Database db,
java.text.CollationKey word)
DefineMatches
public DefineMatches(java.text.CollationKey word,
int pos,
Key[] keys)
DefineMatches
public DefineMatches(Database db,
java.text.CollationKey word,
int pos,
Key[] keys)
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