|
LimeWire Collection Component API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface AutoCompleteDictionary
Defines the interface for an auto-complete dictionary. Implementations
should perform look ups quickly to avoid delays as the user types. The
interface includes adding, removing and clearing entries from the dictionary.
Additionally, AutoCompleteDictionary provides a search and way
to iterate through the dictionary entries.
| Method Summary | |
|---|---|
void |
addEntry(String s)
Adds an entry to the dictionary. |
void |
clear()
Clears the dictionary. |
Iterator<String> |
iterator()
Returns all available entries in dictionary |
Iterator<String> |
iterator(String s)
Returns an iterator of potential matches from the given string. |
String |
lookup(String s)
Perform a lookup and returns the closest matching string to the passed string. |
boolean |
removeEntry(String s)
Removes an entry from the dictionary. |
| Method Detail |
|---|
void addEntry(String s)
s - The string to add to the dictionary.boolean removeEntry(String s)
s - The string to remove to the dictionary.
String lookup(String s)
s - The string to use as the base for the lookup. How this routine
is implemented determines the behaviour of the component.
Typically, the closest matching string that completely contains
the given string is returned.Iterator<String> iterator()
iterator in interface Iterable<String>Iterator<String> iterator(String s)
void clear()
|
LimeWire Collection Component API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||