Class AutocompletePrediction.MatchedSubstring

  • All Implemented Interfaces:
    java.io.Serializable
    Enclosing class:
    AutocompletePrediction

    public static class AutocompletePrediction.MatchedSubstring
    extends java.lang.Object
    implements java.io.Serializable
    Describes the location of the entered term in the prediction result text, so that the term can be highlighted if desired.
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      int length
      The length of the matched substring, measured in Unicode characters.
      int offset
      The start position of the matched substring, measured in Unicode characters.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • length

        public int length
        The length of the matched substring, measured in Unicode characters.
      • offset

        public int offset
        The start position of the matched substring, measured in Unicode characters.
    • Constructor Detail

      • MatchedSubstring

        public MatchedSubstring()
    • Method Detail

      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object