• Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3 P3
    • None
    • 1.2.0
    • docs
    • generic
    • solaris_2.5

      The method hashCode() for TextHitInfo may be specified using the following:

      "The hashcode returned is equal to the numeric value of the character index."

      The method for toString() for TextHitInfo may be specified using:
      "TextHitInfo[" + charIndex + (isLeadingEdge ? "L" : "T")+"]"
      The returned value is the concatenation of the following strings:
      "TextHitInfo["
      The character index of the text hit as a decimal numeral
      "L" or "T" depending on whether the hit is leading or trailing, respectively
      "]"

      P4 stuff follows:

      Suggest we also may add to the class introduction text a statement like:
      "Negative values for text hit offset are permitted."

      Suggest change the "TextHitInfo (1, TRAILING)" text in the introduction text to
      read something like "TextHitInfo trailing at offset position 1".
      The (1, TRAILING) notation is based on a constructor which is no longer present.

            asommere Alan Sommerer (Inactive)
            sflemingsunw Steve Fleming (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: