final class URLEntityJSONImpl extends EntityIndex implements URLEntity
| Modifier and Type | Field and Description |
|---|---|
private java.lang.String |
displayURL |
private java.lang.String |
expandedURL |
private static long |
serialVersionUID |
private java.lang.String |
url |
| Constructor and Description |
|---|
URLEntityJSONImpl() |
URLEntityJSONImpl(int start,
int end,
java.lang.String url,
java.lang.String expandedURL,
java.lang.String displayURL) |
URLEntityJSONImpl(JSONObject json) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
java.lang.String |
getDisplayURL()
Returns the display URL if mentioned URL is shorten.
|
int |
getEnd()
Returns the index of the end character of the URL mentioned in the tweet.
|
java.lang.String |
getExpandedURL()
Returns the expanded URL if mentioned URL is shorten.
|
int |
getStart()
Returns the index of the start character of the URL mentioned in the tweet.
|
java.lang.String |
getText()
Returns the URL mentioned in the tweet.
This method implementation is to meet TweetEntity interface and the behavior is equivalent to URLEntity.getURL() |
java.lang.String |
getURL()
Returns the URL mentioned in the tweet.
|
int |
hashCode() |
private void |
init(JSONObject json) |
java.lang.String |
toString() |
compareTo, setEnd, setStartprivate static final long serialVersionUID
private java.lang.String url
private java.lang.String expandedURL
private java.lang.String displayURL
URLEntityJSONImpl(JSONObject json) throws TwitterException
TwitterExceptionURLEntityJSONImpl(int start,
int end,
java.lang.String url,
java.lang.String expandedURL,
java.lang.String displayURL)
URLEntityJSONImpl()
private void init(JSONObject json) throws TwitterException
TwitterExceptionpublic java.lang.String getText()
URLEntity.getURL()getText in interface TweetEntitygetText in interface URLEntitypublic java.lang.String getURL()
public java.lang.String getExpandedURL()
getExpandedURL in interface URLEntitypublic java.lang.String getDisplayURL()
getDisplayURL in interface URLEntitypublic int getStart()
getStart in interface TweetEntitygetStart in interface URLEntitygetStart in class EntityIndexpublic int getEnd()
getEnd in interface TweetEntitygetEnd in interface URLEntitygetEnd in class EntityIndexpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object