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
           
 
Fields inherited from class ar.com.ktulu.dict.AbstractMatches
db, size, word
 
Constructor Summary
StrategyMatches(Database db, java.text.CollationKey word, java.util.ArrayList results)
           
 
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 ar.com.ktulu.dict.AbstractMatches
getDatabase, getWord, matches
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

idx

int idx

matches

java.util.ArrayList matches
Constructor Detail

StrategyMatches

public StrategyMatches(Database db,
                       java.text.CollationKey word,
                       java.util.ArrayList results)
Method Detail

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