Class SimulatedUserMentionEntity

  • All Implemented Interfaces:
    Serializable, twitter4j.TweetEntity, twitter4j.UserMentionEntity

    public class SimulatedUserMentionEntity
    extends Object
    implements twitter4j.UserMentionEntity
    Represents a UserMentionedEntity from a simulated tweet.
    Version:
    $Revision$
    Author:
    fracpete (fracpete at waikato dot ac dot nz)
    See Also:
    Serialized Form
    • Field Detail

      • m_Name

        protected String m_Name
        the name of the user.
      • m_ScreenName

        protected String m_ScreenName
        the screen name of the user.
      • m_Id

        protected long m_Id
        the ID of the user.
      • 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.
    • Constructor Detail

      • SimulatedUserMentionEntity

        public SimulatedUserMentionEntity()
        Initializes the entity.
    • Method Detail

      • initialize

        protected void initialize()
        Initializes the members.
      • setName

        public void setName​(String value)
        Sets the name mentioned in the status.
        Parameters:
        value - the name mentioned in the status
      • getName

        public String getName()
        Returns the name mentioned in the status.
        Specified by:
        getName in interface twitter4j.UserMentionEntity
        Returns:
        the name mentioned in the status
      • setScreenName

        public void setScreenName​(String value)
        Sets the screen name mentioned in the status.
        Parameters:
        value - the screen name mentioned in the status
      • getScreenName

        public String getScreenName()
        Returns the screen name mentioned in the status.
        Specified by:
        getScreenName in interface twitter4j.UserMentionEntity
        Returns:
        the screen name mentioned in the status
      • setId

        public void setId​(long value)
        Sets the user id mentioned in the status.
        Parameters:
        value - the user id mentioned in the status
      • getId

        public long getId()
        Returns the user id mentioned in the status.
        Specified by:
        getId in interface twitter4j.UserMentionEntity
        Returns:
        the user id mentioned in the status
      • 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 interface twitter4j.TweetEntity
        Specified by:
        getStart in interface twitter4j.UserMentionEntity
        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 interface twitter4j.TweetEntity
        Specified by:
        getEnd in interface twitter4j.UserMentionEntity
        Returns:
        the index of the end character of the hashtag
      • getText

        public String getText()
        Returns the screen name mentioned in the status. This method implementation is to meet TweetEntity interface and the behavior is equivalent to getScreenName()
        Specified by:
        getText in interface twitter4j.TweetEntity
        Specified by:
        getText in interface twitter4j.UserMentionEntity
        Returns:
        the screen name mentioned in the status
        See Also:
        getScreenName()
      • toString

        public String toString()
        Returns the object as string.
        Overrides:
        toString in class Object
        Returns:
        the string description