Package twitter4j.v1

Interface TweetEntity

All Known Subinterfaces:
HashtagEntity, MediaEntity, SymbolEntity, URLEntity, UserMentionEntity

public interface TweetEntity
super interface of UserMentionEntity, URLEntity and HashtagEntity
Since:
Twitter4J 3.0.4
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Returns the index of the end character of the entity in the tweet.
    int
    Returns the index of the start character of the entity in the tweet.
    Returns the text of the entity
  • Method Details

    • getText

      String getText()
      Returns the text of the entity
      Returns:
      the text of the entity
    • getStart

      int getStart()
      Returns the index of the start character of the entity in the tweet.
      Returns:
      the index of the start character of the entity in the tweet
    • getEnd

      int getEnd()
      Returns the index of the end character of the entity in the tweet.
      Returns:
      the index of the end character of the entity in the tweet