Class CMapFormat4.Segment

  • All Implemented Interfaces:
    java.lang.Comparable
    Enclosing class:
    CMapFormat4

    class CMapFormat4.Segment
    extends java.lang.Object
    implements java.lang.Comparable
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) int endCode
      the end code (highest code in this segment)
      (package private) boolean hasMap
      whether it is a map or a delta
      (package private) int startCode
      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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int compareTo​(java.lang.Object o)
      Segments sort by increasing endCode
      boolean equals​(java.lang.Object o)
      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 Detail

      • 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 Detail

      • Segment

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

      • equals

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

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