Class AutocompletePrediction.MatchedSubstring

java.lang.Object
ai.nextbillion.maps.model.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.
  • Constructor Summary

    Constructors 
    Constructor Description
    MatchedSubstring()  
  • Method Summary

    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 Details

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

  • Method Details

    • toString

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