public final class TwitterTextConfiguration extends Object
TwitterTextParser
to parse a tweet.| Modifier and Type | Class and Description |
|---|---|
static class |
TwitterTextConfiguration.Builder |
static class |
TwitterTextConfiguration.TwitterTextWeightedRange |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
static TwitterTextConfiguration |
getDefaultConfig() |
int |
getDefaultWeight()
Get the default weight.
|
boolean |
getEmojiParsingEnabled()
Get whether emoji parsing is enabled.
|
int |
getMaxWeightedTweetLength()
Get the maximum weighted length in the config.
|
List<TwitterTextConfiguration.TwitterTextWeightedRange> |
getRanges()
Get an array of range items that describe ranges of Unicode code points and the weight to
apply to each code point.
|
int |
getScale()
Get the scale.
|
int |
getTransformedURLLength()
In previous versions of twitter-text, which was the "shortened URL length."
Differentiating between the http and https shortened length for URLs has been deprecated
(https is used for all t.co URLs).
|
int |
getVersion()
Get the current version.
|
int |
hashCode() |
public static TwitterTextConfiguration getDefaultConfig()
public int getVersion()
public int getMaxWeightedTweetLength()
maxWeightedTweetLength of 140
and a defaultWeight of 1 for all code points.public int getScale()
public int getDefaultWeight()
public boolean getEmojiParsingEnabled()
public int getTransformedURLLength()
@Nonnull public List<TwitterTextConfiguration.TwitterTextWeightedRange> getRanges()
Copyright © 2020. All rights reserved.