public class HashDictionarySection extends Object implements TempDictionarySection
| Modifier and Type | Field and Description |
|---|---|
static int |
TYPE_INDEX |
| Constructor and Description |
|---|
HashDictionarySection() |
HashDictionarySection(HDTOptions spec) |
| Modifier and Type | Method and Description |
|---|---|
long |
add(CharSequence entry)
Adds an entry to the dictionary section.
|
void |
clear()
Empties the dictionary section of all entries,
|
void |
close() |
CharSequence |
extract(long pos) |
Iterator<? extends CharSequence> |
getEntries()
Iterator over all entries in the dictionary, not necessarily sorted.
|
long |
getNumberOfElements() |
Iterator<? extends CharSequence> |
getSortedEntries() |
boolean |
isSorted()
Indicates if the sort method has been called and the section is sorted, ID's updated
and the section ready to be used for generation of a QueryableDictionarySection.
|
long |
locate(CharSequence s) |
void |
remove(CharSequence seq)
Removes an entry from the dictionary section.
|
long |
size() |
void |
sort()
Sorts the entries in the dictionary section and updates their ID's according to the
sorting order.
|
public static final int TYPE_INDEX
public HashDictionarySection()
public HashDictionarySection(HDTOptions spec)
public long locate(CharSequence s)
locate in interface DictionarySectionpublic CharSequence extract(long pos)
extract in interface DictionarySectionpublic long size()
size in interface DictionarySectionpublic long getNumberOfElements()
getNumberOfElements in interface DictionarySectionpublic Iterator<? extends CharSequence> getSortedEntries()
getSortedEntries in interface DictionarySectionpublic Iterator<? extends CharSequence> getEntries()
TempDictionarySectiongetEntries in interface TempDictionarySectionpublic long add(CharSequence entry)
TempDictionarySectionadd in interface TempDictionarySectionpublic void remove(CharSequence seq)
TempDictionarySectionremove in interface TempDictionarySectionpublic void sort()
TempDictionarySectionsort in interface TempDictionarySectionpublic boolean isSorted()
TempDictionarySectionisSorted in interface TempDictionarySectionpublic void clear()
TempDictionarySectionclear in interface TempDictionarySectionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2018 DataWeb Research. All rights reserved.