C - the type of entries in the dictionarypublic interface Dictionary<C> extends Set<DictionaryEntry<C>>
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.
| Modifier and Type | Method and Description |
|---|---|
void |
addEntry(DictionaryEntry<C> entry)
Adds the specified dictionary entry to the dictionary.
|
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.
|
List<DictionaryEntry<C>> |
entryList()
Returns all of the dictionary entries for this dictionary.
|
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.
|
Iterator<DictionaryEntry<C>> phraseEntryIt(String phrase)
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.List<DictionaryEntry<C>> categoryEntryList(C category)
category - Category of entries.int size()
size in interface Collection<DictionaryEntry<C>>size in interface Set<DictionaryEntry<C>>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.Copyright © 2016 Alias-i, Inc.. All rights reserved.