public final class CharacterUtil
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
MAX_TWEET_LENGTH |
Modifier | Constructor and Description |
---|---|
private |
CharacterUtil() |
Modifier and Type | Method and Description |
---|---|
static int |
count(java.lang.String text)
Counts the length of the tweet
|
static boolean |
isExceedingLengthLimitation(java.lang.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(java.lang.String text)
text
- tweet to be countedpublic static boolean isExceedingLengthLimitation(java.lang.String text)
text
- String to be examined