Class HashtagFields


  • @Generated("org.openapitools.codegen.languages.JavaClientCodegen")
    public class HashtagFields
    extends Object
    Represent the portion of text recognized as a Hashtag, and its start and end position within the text.
    • Constructor Detail

      • HashtagFields

        public HashtagFields()
    • Method Detail

      • getTag

        @Nonnull
        public String getTag()
        The text of the Hashtag
        Returns:
        tag
      • setTag

        public void setTag​(String tag)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • validateJsonObject

        public static void validateJsonObject​(com.google.gson.JsonObject jsonObj)
                                       throws IOException
        Validates the JSON Object and throws an exception if issues found
        Parameters:
        jsonObj - JSON Object
        Throws:
        IOException - if the JSON Object is invalid with respect to HashtagFields
      • fromJson

        public static HashtagFields fromJson​(String jsonString)
                                      throws IOException
        Create an instance of HashtagFields given an JSON string
        Parameters:
        jsonString - JSON string
        Returns:
        An instance of HashtagFields
        Throws:
        IOException - if the JSON string is invalid with respect to HashtagFields
      • toJson

        public String toJson()
        Convert an instance of HashtagFields to an JSON string
        Returns:
        JSON string