Class StringUtils
- java.lang.Object
-
- net.timewalker.ffmq4.common.message.selector.expression.utils.StringUtils
-
public final class StringUtils extends Object
StringUtils
-
-
Constructor Summary
Constructors Constructor Description StringUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Stringimplode(Object array, String delimiter)static Booleanmatches(String text, String pattern, String escapeChar)Check if the given text matches a patternstatic NumberparseNumber(String numberAsString)Parse a number as stringstatic StringreplaceDoubleSingleQuotes(String value)Replace double single quotes in the target stringstatic StringreplaceSingleQuotes(String value)Replace single quotes in the target string by double single quotesstatic StringrightPad(String text, int len, char paddingChar)
-
-
-
Method Detail
-
replaceDoubleSingleQuotes
public static String replaceDoubleSingleQuotes(String value)
Replace double single quotes in the target string
-
replaceSingleQuotes
public static String replaceSingleQuotes(String value)
Replace single quotes in the target string by double single quotes
-
parseNumber
public static Number parseNumber(String numberAsString) throws javax.jms.InvalidSelectorException
Parse a number as string- Throws:
javax.jms.InvalidSelectorException
-
matches
public static Boolean matches(String text, String pattern, String escapeChar)
Check if the given text matches a pattern
-
-