Class EntityIndicesInclusiveInclusive


  • @Generated("org.openapitools.codegen.languages.JavaClientCodegen")
    public class EntityIndicesInclusiveInclusive
    extends Object
    Represent a boundary range (start and end index) for a recognized entity (for example a hashtag or a mention). `start` must be smaller than `end`. The start index is inclusive, the end index is inclusive.
    • Constructor Detail

      • EntityIndicesInclusiveInclusive

        public EntityIndicesInclusiveInclusive()
    • Method Detail

      • getEnd

        @Nonnull
        public Integer getEnd()
        Index (zero-based) at which position this entity ends. The index is inclusive. 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)
      • 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 EntityIndicesInclusiveInclusive
      • fromJson

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

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