twitter4j
Class HashtagEntityJSONImpl
java.lang.Object
twitter4j.HashtagEntityJSONImpl
- All Implemented Interfaces:
- java.io.Serializable, HashtagEntity
class HashtagEntityJSONImpl
- extends java.lang.Object
- implements HashtagEntity
A data class representing one single Hashtag entity.
- Since:
- Twitter4J 2.1.9
- Author:
- Yusuke Yamamoto - yusuke at mac.com
Method Summary |
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(twitter4j.internal.org.json.JSONObject json)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
start
private int start
end
private int end
text
private java.lang.String text
HashtagEntityJSONImpl
HashtagEntityJSONImpl(twitter4j.internal.org.json.JSONObject json)
throws TwitterException
- Throws:
TwitterException
init
private void init(twitter4j.internal.org.json.JSONObject json)
throws TwitterException
- Throws:
TwitterException
getText
public java.lang.String getText()
- Returns the text of the hashtag without #.
- Specified by:
getText
in interface HashtagEntity
- Returns:
- the text of the hashtag
getStart
public int getStart()
- Returns the index of the start character of the hashtag.
- Specified by:
getStart
in interface HashtagEntity
- Returns:
- the index of the start character of the hashtag
getEnd
public int getEnd()
- Returns the index of the end character of the hashtag.
- Specified by:
getEnd
in interface HashtagEntity
- Returns:
- the index of the end character of the hashtag
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object