Class CMapFormat4.Segment

java.lang.Object
com.sun.pdfview.font.ttf.CMapFormat4.Segment
All Implemented Interfaces:
Comparable
Enclosing class:
CMapFormat4

class CMapFormat4.Segment extends Object implements Comparable
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    (package private) int
    the end code (highest code in this segment)
    (package private) boolean
    whether it is a map or a delta
    (package private) int
    the start code (lowest code in this segment)
  • Constructor Summary

    Constructors
    Constructor
    Description
    Segment(short startCode, short endCode, boolean hasMap)
    Create a new segment
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Segments sort by increasing endCode
    boolean
    Equals based on compareTo (only compares endCode)

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • endCode

      int endCode
      the end code (highest code in this segment)
    • startCode

      int startCode
      the start code (lowest code in this segment)
    • hasMap

      boolean hasMap
      whether it is a map or a delta
  • Constructor Details

    • Segment

      public Segment(short startCode, short endCode, boolean hasMap)
      Create a new segment
  • Method Details

    • equals

      public boolean equals(Object o)
      Equals based on compareTo (only compares endCode)
      Overrides:
      equals in class Object
    • compareTo

      public int compareTo(Object o)
      Segments sort by increasing endCode
      Specified by:
      compareTo in interface Comparable