Class SimulatedSymbolEntity

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

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

      • m_Text

        protected String m_Text
        the text of the symbol.
      • m_Start

        protected int m_Start
        the start of the symbol in the tweet.
      • m_End

        protected int m_End
        the end of the symbol in the tweet.
    • Constructor Detail

      • SimulatedSymbolEntity

        public SimulatedSymbolEntity()
        Initializes the entity.
    • Method Detail

      • initialize

        protected void initialize()
        Initializes the members.
      • setText

        public void setText​(String value)
        Sets the text of the symbol without #.
        Parameters:
        value - the text of the symbol
      • getText

        public String getText()
        Returns the text of the symbol without #.
        Specified by:
        getText in interface twitter4j.TweetEntity
        Returns:
        the text of the symbol
      • setStart

        public void setStart​(int value)
        Sets the index of the start character of the symbol.
        Parameters:
        value - the index of the start character of the symbol
      • getStart

        public int getStart()
        Returns the index of the start character of the symbol.
        Specified by:
        getStart in interface twitter4j.SymbolEntity
        Specified by:
        getStart in interface twitter4j.TweetEntity
        Returns:
        the index of the start character of the symbol
      • setEnd

        public void setEnd​(int value)
        Sets the index of the end character of the symbol.
        Parameters:
        value - the index of the end character of the symbol
      • getEnd

        public int getEnd()
        Returns the index of the end character of the symbol.
        Specified by:
        getEnd in interface twitter4j.SymbolEntity
        Specified by:
        getEnd in interface twitter4j.TweetEntity
        Returns:
        the index of the end character of the symbol
      • toString

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