Class HashtagEntity


  • @Generated("org.openapitools.codegen.languages.JavaClientCodegen")
    public class HashtagEntity
    extends Object
    HashtagEntity
    • Constructor Detail

      • HashtagEntity

        public HashtagEntity()
    • Method Detail

      • getStart

        @Nonnull
        public Integer getStart()
        Index (zero-based) at which position this entity starts. The index is inclusive. minimum: 0
        Returns:
        start
      • setStart

        public void setStart​(Integer start)
      • getEnd

        @Nonnull
        public Integer getEnd()
        Index (zero-based) at which position this entity ends. The index is exclusive. minimum: 0
        Returns:
        end
      • setEnd

        public void setEnd​(Integer end)
      • 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 HashtagEntity
      • fromJson

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

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