winterwell.jtwitter
Class Twitter.TweetEntity

java.lang.Object
  extended by winterwell.jtwitter.Twitter.TweetEntity
All Implemented Interfaces:
java.io.Serializable
Enclosing class:
Twitter

public static final class Twitter.TweetEntity
extends java.lang.Object
implements java.io.Serializable

A special slice of text within a tweet.

See Also:
Twitter.setIncludeTweetEntities(boolean), Serialized Form

Field Summary
 int end
          end of the entity in the contents String, exclusive
 int start
          start of the entity in the contents String, inclusive
 Twitter.KEntityType type
           
 
Method Summary
 java.lang.String displayVersion()
           
 java.lang.String toString()
          The slice of text in the tweet.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

end

public final int end
end of the entity in the contents String, exclusive


start

public final int start
start of the entity in the contents String, inclusive


type

public final Twitter.KEntityType type
Method Detail

displayVersion

public java.lang.String displayVersion()
Returns:
For a url: the expanded version For a user-mention: the user's name

toString

public java.lang.String toString()
The slice of text in the tweet. E.g. for a url, this will be the *shortened* version.

Overrides:
toString in class java.lang.Object
See Also:
displayVersion()