public final class CharacterUtil extends Object
Modifier and Type | Field and Description |
---|---|
static int |
MAX_TWEET_LENGTH |
Modifier and Type | Method and Description |
---|---|
static int |
count(String text)
Counts the length of the tweet
|
static boolean |
isExceedingLengthLimitation(String text)
Returns true if the length of the string is exceeding length limitation
|
public static final int MAX_TWEET_LENGTH
public static int count(String text)
text
- tweet to be countedpublic static boolean isExceedingLengthLimitation(String text)
text
- String to be examinedCopyright © 2018. All rights reserved.