|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--ar.com.ktulu.dict.MatchesContainer
Given a list of Matches, it iterates over all of them.
Matches| Field Summary | |
(package private) int |
idx
|
(package private) java.util.ArrayList |
matches
|
(package private) int |
size
|
| Constructor Summary | |
MatchesContainer(java.util.ArrayList matches)
|
|
| Method Summary | |
protected int |
countMatches()
|
Database |
getDatabase()
Returns the database that was used to perform the search. |
java.lang.String |
getWord()
Returns the word that was used to perform the search. |
boolean |
hasNext()
Returns true there are more elements. |
int |
matches()
Returns the number of matches. |
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 |
| Field Detail |
java.util.ArrayList matches
int size
int idx
| Constructor Detail |
public MatchesContainer(java.util.ArrayList matches)
throws DatabaseException
| Method Detail |
public Database getDatabase()
Matches
getDatabase in interface Matchespublic java.lang.String getWord()
Matches
getWord in interface Matchespublic int matches()
Matches
matches in interface Matches
public boolean hasNext()
throws DatabaseException
Matchestrue there are more elements.
hasNext in interface MatchesDatabaseException
public Definition next()
throws DatabaseException
Matches
next in interface MatchesDatabaseException
public java.lang.String nextWord()
throws DatabaseException
Matches
nextWord in interface MatchesDatabaseException
protected int countMatches()
throws DatabaseException
DatabaseException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||