class HashtagEntityJSONImpl extends EntityIndex implements HashtagEntity, SymbolEntity
| Modifier and Type | Field and Description |
|---|---|
private static long |
serialVersionUID |
private java.lang.String |
text |
| Constructor and Description |
|---|
HashtagEntityJSONImpl() |
HashtagEntityJSONImpl(int start,
int end,
java.lang.String text) |
HashtagEntityJSONImpl(JSONObject json) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
int |
getEnd()
Returns the index of the end character of the hashtag.
|
int |
getStart()
Returns the index of the start character of the hashtag.
|
java.lang.String |
getText()
Returns the text of the hashtag without #.
|
int |
hashCode() |
private void |
init(JSONObject json) |
java.lang.String |
toString() |
compareTo, setEnd, setStartprivate static final long serialVersionUID
private java.lang.String text
HashtagEntityJSONImpl(JSONObject json) throws TwitterException
TwitterExceptionHashtagEntityJSONImpl(int start,
int end,
java.lang.String text)
HashtagEntityJSONImpl()
private void init(JSONObject json) throws TwitterException
TwitterExceptionpublic java.lang.String getText()
getText in interface HashtagEntitygetText in interface TweetEntitypublic int getStart()
getStart in interface HashtagEntitygetStart in interface SymbolEntitygetStart in interface TweetEntitygetStart in class EntityIndexpublic int getEnd()
getEnd in interface HashtagEntitygetEnd in interface SymbolEntitygetEnd in interface TweetEntitygetEnd in class EntityIndexpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object