Package twitter4j.v1
Interface UserMentionEntity
- All Superinterfaces:
Serializable
,TweetEntity
A data interface representing one single user mention entity.
- Since:
- Twitter4J 2.1.9
-
Method Summary
Modifier and TypeMethodDescriptionint
getEnd()
Returns the index of the end character of the user mention.long
getId()
Returns the user id mentioned in the status.getName()
Returns the name mentioned in the status.Returns the screen name mentioned in the status.int
getStart()
Returns the index of the start character of the user mention.getText()
Returns the screen name mentioned in the status.
-
Method Details
-
getText
String getText()Returns the screen name mentioned in the status. This method implementation is to meet TweetEntity interface and the behavior is equivalent togetScreenName()
- Specified by:
getText
in interfaceTweetEntity
- Returns:
- the screen name mentioned in the status
-
getName
String getName()Returns the name mentioned in the status.- Returns:
- the name mentioned in the status
-
getScreenName
String getScreenName()Returns the screen name mentioned in the status.- Returns:
- the screen name mentioned in the status
-
getId
long getId()Returns the user id mentioned in the status.- Returns:
- the user id mentioned in the status
-
getStart
int getStart()Returns the index of the start character of the user mention.- Specified by:
getStart
in interfaceTweetEntity
- Returns:
- the index of the start character of the user mention
-
getEnd
int getEnd()Returns the index of the end character of the user mention.- Specified by:
getEnd
in interfaceTweetEntity
- Returns:
- the index of the end character of the user mention
-