Class MentionEntity


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

      • MentionEntity

        public MentionEntity()
    • Method Detail

      • 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)
      • 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)
      • getId

        @Nonnull
        public String getId()
        Unique identifier of this User. This is returned as a string in order to avoid complications with languages and tools that cannot handle large integers.
        Returns:
        id
      • setId

        public void setId​(String id)
      • getUsername

        @Nonnull
        public String getUsername()
        The Twitter handle (screen name) of this user.
        Returns:
        username
      • setUsername

        public void setUsername​(String username)
      • 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 MentionEntity
      • fromJson

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

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