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, setStart
private static final long serialVersionUID
private java.lang.String text
HashtagEntityJSONImpl(JSONObject json) throws TwitterException
TwitterException
HashtagEntityJSONImpl(int start, int end, java.lang.String text)
HashtagEntityJSONImpl()
private void init(JSONObject json) throws TwitterException
TwitterException
public java.lang.String getText()
getText
in interface HashtagEntity
getText
in interface TweetEntity
public int getStart()
getStart
in interface HashtagEntity
getStart
in interface SymbolEntity
getStart
in interface TweetEntity
getStart
in class EntityIndex
public int getEnd()
getEnd
in interface HashtagEntity
getEnd
in interface SymbolEntity
getEnd
in interface TweetEntity
getEnd
in class EntityIndex
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object