Class CashtagEntity


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

      • CashtagEntity

        public CashtagEntity()
    • 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)
      • 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 CashtagEntity
      • fromJson

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

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