Class IndexEntries

java.lang.Object
com.teamten.typeset.IndexEntries

public class IndexEntries extends Object
Stores a set of index entries.
  • Constructor Details

    • IndexEntries

      public IndexEntries(Collator collator)
      Specify a collator for sorting the index entries.
  • Method Details

    • add

      public void add(IndexEntry indexEntry)
      Adds an entry to the set.
    • add

      public void add(List<Block> texts, int physicalPageNumber)
      Add an entry by a list of text (entry, sub-entry, etc.) and page number.
    • mergeWith

      public void mergeWith(IndexEntries other)
      Adds a set of entries to our own.
    • getEntries

      public List<IndexEntry> getEntries()
      Return a sorted list of index entries.
    • makeFakeIndex

      public void makeFakeIndex(Collator collator, int count) throws IOException
      Fill this object with count entries or sub-entries.
      Throws:
      IOException
    • println

      public void println(PrintStream stream, String indent)
      Print the entries to the stream.