public class ParserUtils
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static boolean |
isDate(java.lang.String text)
Returns if the given string looks like a date to us.
|
static boolean |
isNumber(java.lang.String text)
Returns whether or not the given text looks like a number.
|
static java.lang.String |
normalizePhrase(java.lang.String phrase)
Normalizes the phrase text.
|
static java.lang.String |
trimLast(java.lang.String text)
Removes the last character from the given text
|
public static java.lang.String trimLast(java.lang.String text)
public static java.lang.String normalizePhrase(java.lang.String phrase)
phrase
- the phrase to be normalizedpublic static boolean isNumber(java.lang.String text)
text
- the text tested if it looks like a numberpublic static boolean isDate(java.lang.String text)
text
- text checked if it looks like a date