twitter4j
Class HashtagEntityJSONImpl

java.lang.Object
  extended by 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

Field Summary
private  int end
           
private static long serialVersionUID
           
private  int start
           
private  java.lang.String text
           
 
Constructor Summary
HashtagEntityJSONImpl(twitter4j.internal.org.json.JSONObject json)
           
 
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
 

Field Detail

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
Constructor Detail

HashtagEntityJSONImpl

HashtagEntityJSONImpl(twitter4j.internal.org.json.JSONObject json)
                throws TwitterException
Throws:
TwitterException
Method Detail

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