Package adams.data.twitter
Class SimulatedHashtagEntity
- java.lang.Object
-
- adams.data.twitter.SimulatedHashtagEntity
-
- All Implemented Interfaces:
Serializable
,twitter4j.HashtagEntity
,twitter4j.TweetEntity
public class SimulatedHashtagEntity extends Object implements twitter4j.HashtagEntity
Represents aHashtagEntity
from a simulated tweet.- Version:
- $Revision$
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SimulatedHashtagEntity()
Initializes the entity.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getEnd()
Returns the index of the end character of the hashtag.int
getStart()
Returns the index of the start character of the hashtag.String
getText()
Returns the text of the hashtag without #.protected void
initialize()
Initializes the members.void
setEnd(int value)
Sets the index of the end character of the hashtag.void
setStart(int value)
Sets the index of the start character of the hashtag.void
setText(String value)
Sets the text of the hashtag without #.String
toString()
Returns the object as string.
-
-
-
Field Detail
-
m_Text
protected String m_Text
the text of the hashtag.
-
m_Start
protected int m_Start
the start of the hashtag in the tweet.
-
m_End
protected int m_End
the end of the hashtag in the tweet.
-
-
Method Detail
-
initialize
protected void initialize()
Initializes the members.
-
setText
public void setText(String value)
Sets the text of the hashtag without #.- Parameters:
value
- the text of the hashtag
-
getText
public String getText()
Returns the text of the hashtag without #.- Specified by:
getText
in interfacetwitter4j.HashtagEntity
- Specified by:
getText
in interfacetwitter4j.TweetEntity
- Returns:
- the text of the hashtag
-
setStart
public void setStart(int value)
Sets the index of the start character of the hashtag.- Parameters:
value
- the index of the start character of the hashtag
-
getStart
public int getStart()
Returns the index of the start character of the hashtag.- Specified by:
getStart
in interfacetwitter4j.HashtagEntity
- Specified by:
getStart
in interfacetwitter4j.TweetEntity
- Returns:
- the index of the start character of the hashtag
-
setEnd
public void setEnd(int value)
Sets the index of the end character of the hashtag.- Parameters:
value
- the index of the end character of the hashtag
-
getEnd
public int getEnd()
Returns the index of the end character of the hashtag.- Specified by:
getEnd
in interfacetwitter4j.HashtagEntity
- Specified by:
getEnd
in interfacetwitter4j.TweetEntity
- Returns:
- the index of the end character of the hashtag
-
-