Package com.twitter.clientlib.model
Class EntityIndicesInclusiveInclusive
- java.lang.Object
-
- com.twitter.clientlib.model.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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
EntityIndicesInclusiveInclusive.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>
openapiFields
static HashSet<String>
openapiRequiredFields
static String
SERIALIZED_NAME_END
static String
SERIALIZED_NAME_START
-
Constructor Summary
Constructors Constructor Description EntityIndicesInclusiveInclusive()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description EntityIndicesInclusiveInclusive
end(Integer end)
boolean
equals(Object o)
static EntityIndicesInclusiveInclusive
fromJson(String jsonString)
Create an instance of EntityIndicesInclusiveInclusive given an JSON stringInteger
getEnd()
Index (zero-based) at which position this entity ends.Integer
getStart()
Index (zero-based) at which position this entity starts.int
hashCode()
void
setEnd(Integer end)
void
setStart(Integer start)
EntityIndicesInclusiveInclusive
start(Integer start)
String
toJson()
Convert an instance of EntityIndicesInclusiveInclusive to an JSON stringString
toString()
static void
validateJsonObject(com.google.gson.JsonObject jsonObj)
Validates the JSON Object and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_END
public static final String SERIALIZED_NAME_END
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_START
public static final String SERIALIZED_NAME_START
- See Also:
- Constant Field Values
-
-
Method Detail
-
end
public EntityIndicesInclusiveInclusive end(Integer end)
-
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)
-
start
public EntityIndicesInclusiveInclusive start(Integer start)
-
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)
-
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
-
-