Package com.teamten.typeset
Class IndexEntries
java.lang.Object
com.teamten.typeset.IndexEntries
Stores a set of index entries.
-
Constructor Summary
ConstructorsConstructorDescriptionIndexEntries
(Collator collator) Specify a collator for sorting the index entries. -
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(IndexEntry indexEntry) Adds an entry to the set.void
Add an entry by a list of text (entry, sub-entry, etc.) and page number.Return a sorted list of index entries.void
makeFakeIndex
(Collator collator, int count) Fill this object with count entries or sub-entries.void
mergeWith
(IndexEntries other) Adds a set of entries to our own.void
println
(PrintStream stream, String indent) Print the entries to the stream.
-
Constructor Details
-
IndexEntries
Specify a collator for sorting the index entries.
-
-
Method Details
-
add
Adds an entry to the set. -
add
Add an entry by a list of text (entry, sub-entry, etc.) and page number. -
mergeWith
Adds a set of entries to our own. -
getEntries
Return a sorted list of index entries. -
makeFakeIndex
Fill this object with count entries or sub-entries.- Throws:
IOException
-
println
Print the entries to the stream.
-