twitter4j
Interface URLEntity

All Superinterfaces:
java.io.Serializable
All Known Implementing Classes:
URLEntityJSONImpl

public interface URLEntity
extends java.io.Serializable

A data interface representing one single URL entity.

Since:
Twitter4J 2.1.9
Author:
Mocel - mocel at guma.jp

Method Summary
 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.
 

Method Detail

getURL

java.net.URL getURL()
Returns the URL mentioned in the tweet.

Returns:
the mentioned URL

getExpandedURL

java.net.URL getExpandedURL()
Returns the expanded URL if mentioned URL is shorten.

Returns:
the expanded URL if mentioned URL is shorten, or null if no shorten URL was mentioned.

getDisplayURL

java.lang.String getDisplayURL()
Returns the display URL if mentioned URL is shorten.

Returns:
the display URL if mentioned URL is shorten, or null if no shorten URL was mentioned.

getStart

int getStart()
Returns the index of the start character of the URL mentioned in the tweet.

Returns:
the index of the start character of the URL mentioned in the tweet

getEnd

int getEnd()
Returns the index of the end character of the URL mentioned in the tweet.

Returns:
the index of the end character of the URL mentioned in the tweet