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, setStart
private static final long serialVersionUID
private java.lang.String url
private java.lang.String expandedURL
private java.lang.String displayURL
URLEntityJSONImpl(JSONObject json) throws TwitterException
TwitterException
URLEntityJSONImpl(int start, int end, java.lang.String url, java.lang.String expandedURL, java.lang.String displayURL)
URLEntityJSONImpl()
private void init(JSONObject json) throws TwitterException
TwitterException
public java.lang.String getText()
URLEntity.getURL()
getText
in interface TweetEntity
getText
in interface URLEntity
public java.lang.String getURL()
public java.lang.String getExpandedURL()
getExpandedURL
in interface URLEntity
public java.lang.String getDisplayURL()
getDisplayURL
in interface URLEntity
public int getStart()
getStart
in interface TweetEntity
getStart
in interface URLEntity
getStart
in class EntityIndex
public int getEnd()
getEnd
in interface TweetEntity
getEnd
in interface URLEntity
getEnd
in class EntityIndex
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object