Modifier and Type | Field and Description |
---|---|
private java.lang.String |
displayURL |
private int |
end |
private java.net.URL |
expandedURL |
private static long |
serialVersionUID |
private int |
start |
private java.net.URL |
url |
Constructor and Description |
---|
URLEntityJSONImpl(twitter4j.internal.org.json.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.net.URL |
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.net.URL |
getURL()
Returns the URL mentioned in the tweet.
|
int |
hashCode() |
private void |
init(twitter4j.internal.org.json.JSONObject json) |
java.lang.String |
toString() |
private int start
private int end
private java.net.URL url
private java.net.URL expandedURL
private java.lang.String displayURL
private static final long serialVersionUID
URLEntityJSONImpl(twitter4j.internal.org.json.JSONObject json) throws TwitterException
TwitterException
private void init(twitter4j.internal.org.json.JSONObject json) throws TwitterException
TwitterException
public java.net.URL getURL()
public java.net.URL getExpandedURL()
getExpandedURL
in interface URLEntity
public java.lang.String getDisplayURL()
getDisplayURL
in interface URLEntity
public int getStart()
public int getEnd()
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