Class Bookmarks

java.lang.Object
com.teamten.typeset.Bookmarks

public class Bookmarks extends Object
Keeps track of a set of bookmarks and which physical page they're on.
  • Method Details

    • empty

      public static Bookmarks empty()
    • fromPages

      public static Bookmarks fromPages(List<Page> pages)
    • entries

      public Set<Map.Entry<Integer,Bookmark>> entries()
      Get a set of bookmark entries, where the key is the physical page number and the value is the bookmark
    • getPhysicalPageNumberForLabel

      public Integer getPhysicalPageNumberForLabel(String name)
      Return the physical page number for a label, or null if not found.
    • println

      public void println(PrintStream stream)
      Print all bookmarks, ordered by page number.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object