twitter4j
Class UserMentionEntityJSONImpl

java.lang.Object
  extended by twitter4j.UserMentionEntityJSONImpl
All Implemented Interfaces:
java.io.Serializable, UserMentionEntity

 class UserMentionEntityJSONImpl
extends java.lang.Object
implements UserMentionEntity

A data interface representing one single user mention entity.

Since:
Twitter4J 2.1.9
Author:
Yusuke Yamamoto - yusuke at mac.com

Field Summary
private  int end
           
private  long id
           
private  java.lang.String name
           
private  java.lang.String screenName
           
private static long serialVersionUID
           
private  int start
           
 
Constructor Summary
UserMentionEntityJSONImpl(twitter4j.internal.org.json.JSONObject json)
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 int getEnd()
          Returns the index of the end character of the user mention.
 long getId()
          Returns the user id mentioned in the status.
 java.lang.String getName()
          Returns the name mentioned in the status.
 java.lang.String getScreenName()
          Returns the screen name mentioned in the status.
 int getStart()
          Returns the index of the start character of the user mention.
 int hashCode()
           
private  void init(twitter4j.internal.org.json.JSONObject json)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

start

private int start

end

private int end

name

private java.lang.String name

screenName

private java.lang.String screenName

id

private long id
Constructor Detail

UserMentionEntityJSONImpl

UserMentionEntityJSONImpl(twitter4j.internal.org.json.JSONObject json)
                    throws TwitterException
Throws:
TwitterException
Method Detail

init

private void init(twitter4j.internal.org.json.JSONObject json)
           throws TwitterException
Throws:
TwitterException

getName

public java.lang.String getName()
Returns the name mentioned in the status.

Specified by:
getName in interface UserMentionEntity
Returns:
the name mentioned in the status

getScreenName

public java.lang.String getScreenName()
Returns the screen name mentioned in the status.

Specified by:
getScreenName in interface UserMentionEntity
Returns:
the screen name mentioned in the status

getId

public long getId()
Returns the user id mentioned in the status.

Specified by:
getId in interface UserMentionEntity
Returns:
the user id mentioned in the status

getStart

public int getStart()
Returns the index of the start character of the user mention.

Specified by:
getStart in interface UserMentionEntity
Returns:
the index of the start character of the user mention

getEnd

public int getEnd()
Returns the index of the end character of the user mention.

Specified by:
getEnd in interface UserMentionEntity
Returns:
the index of the end character of the user mention

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object