Package com.twitter.clientlib.model
Class HashtagFields
- java.lang.Object
-
- com.twitter.clientlib.model.HashtagFields
-
@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class HashtagFields extends Object
Represent the portion of text recognized as a Hashtag, and its start and end position within the text.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classHashtagFields.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_TAG
-
Constructor Summary
Constructors Constructor Description HashtagFields()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)static HashtagFieldsfromJson(String jsonString)Create an instance of HashtagFields given an JSON stringStringgetTag()The text of the HashtaginthashCode()voidsetTag(String tag)HashtagFieldstag(String tag)StringtoJson()Convert an instance of HashtagFields to an JSON stringStringtoString()static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object and throws an exception if issues found
-
-
-
Method Detail
-
tag
public HashtagFields tag(String tag)
-
setTag
public void setTag(String tag)
-
validateJsonObject
public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws IOExceptionValidates 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 HashtagFields
-
fromJson
public static HashtagFields fromJson(String jsonString) throws IOException
Create an instance of HashtagFields given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of HashtagFields
- Throws:
IOException- if the JSON string is invalid with respect to HashtagFields
-
toJson
public String toJson()
Convert an instance of HashtagFields to an JSON string- Returns:
- JSON string
-
-