Interface DictEntries
-
- All Superinterfaces:
java.util.Collection<DictEntry>
,java.lang.Iterable<DictEntry>
,java.util.List<DictEntry>
public interface DictEntries extends java.util.List<DictEntry>
An object representing homonym dictionary entries. Note that the order of entries here may differ from the order in the *.dic file!
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default java.lang.String
getMorphologicalData(int entryIndex)
Same asget(entryIndex).getMorphologicalData()
default java.util.List<java.lang.String>
getMorphologicalValues(int entryIndex, java.lang.String key)
Same asget(entryIndex).getMorphologicalValues(key)
int
size()
-
-
-
Method Detail
-
size
int size()
- Specified by:
size
in interfacejava.util.Collection<DictEntry>
- Specified by:
size
in interfacejava.util.List<DictEntry>
- Returns:
- a positive number of dictionary entries with the same word. Most often it's 1 (unless
there are homonyms). Entries are indexed from 0 to
size() - 1
and these indices can be passed into other methods of this class.
-
getMorphologicalData
default java.lang.String getMorphologicalData(int entryIndex)
Same asget(entryIndex).getMorphologicalData()
-
getMorphologicalValues
default java.util.List<java.lang.String> getMorphologicalValues(int entryIndex, java.lang.String key)
Same asget(entryIndex).getMorphologicalValues(key)
-
-