|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
C - the type of entries in the dictionarypublic interface Dictionary<C>
The Dictionary interface represents a dictionary as a
set of entries. Dictionary entries povide a string, a category, and
a score.
Equality conditions and basic access are documented in the
Set interface.
| Method Summary | |
|---|---|
void |
addEntry(DictionaryEntry<C> entry)
Adds the specified dictionary entry to the dictionary. |
DictionaryEntry<C>[] |
categoryEntries(C category)
Deprecated. Use categoryEntryList(Object) instead. |
Iterator<DictionaryEntry<C>> |
categoryEntryIt(C category)
Returns an iterator over the dictionary entries with the specified category. |
List<DictionaryEntry<C>> |
categoryEntryList(C category)
Returns the dictionary entries with the specified category. |
DictionaryEntry<C>[] |
entries()
Deprecated. Use entryList() instead. |
List<DictionaryEntry<C>> |
entryList()
Returns all of the dictionary entries for this dictionary. |
DictionaryEntry<C>[] |
phraseEntries(String phrase)
Deprecated. Use phraseEntryList(String) instead. |
Iterator<DictionaryEntry<C>> |
phraseEntryIt(String phrase)
Returns an iterator over the dictionary entries with the specified phrase. |
List<DictionaryEntry<C>> |
phraseEntryList(String phrase)
Returns the dictionary entries with the specified phrase. |
int |
size()
Returns the size of this dictionary as measured by number of dictionary entries. |
| Methods inherited from interface java.util.Set |
|---|
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, toArray, toArray |
| Method Detail |
|---|
Iterator<DictionaryEntry<C>> phraseEntryIt(String phrase)
phrase - The phrase to look up.
@Deprecated DictionaryEntry<C>[] phraseEntries(String phrase)
phraseEntryList(String) instead.
phrase - The phrase to look up.
List<DictionaryEntry<C>> phraseEntryList(String phrase)
phrase - The phrase to look up.
Iterator<DictionaryEntry<C>> categoryEntryIt(C category)
category - Category of entries.
@Deprecated DictionaryEntry<C>[] categoryEntries(C category)
categoryEntryList(Object) instead.
category - Category of entries.
List<DictionaryEntry<C>> categoryEntryList(C category)
category - Category of entries.
int size()
size in interface Collection<DictionaryEntry<C>>size in interface Set<DictionaryEntry<C>>@Deprecated DictionaryEntry<C>[] entries()
entryList() instead.
List<DictionaryEntry<C>> entryList()
void addEntry(DictionaryEntry<C> entry)
Dictionary is immutable, then
this method may throw an unsupported operation exception.
entry - Dictionary entry to add.
UnsupportedOperationException - If this operation is not
supported by a subclass implementation.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||