Class StringUtils
- java.lang.Object
-
- org.vedantatree.expressionoasis.utils.StringUtils
-
public final class StringUtils extends Object
This class provides the util methods for string operations.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
assertQualifiedArgument(String attribute)
static void
assertQualifiedArgument(String attribute, String attributeName)
static String
blankString(int length)
Creates an empty string of given length.static String
getLastToken(String value, String delimiter)
Gets the last token for spcefied dlimiter and string.static boolean
isQualifiedString(String str)
Checks whether the string is a qualified string or not.static void
main(String[] args)
static String
objectArrayToString(Object[] objectArray)
-
-
-
Method Detail
-
assertQualifiedArgument
public static void assertQualifiedArgument(String attribute, String attributeName)
-
assertQualifiedArgument
public static void assertQualifiedArgument(String attribute)
-
isQualifiedString
public static final boolean isQualifiedString(String str)
Checks whether the string is a qualified string or not. A string is a qualified string if it is not null and contains at least one charcter other than blank character.- Parameters:
str
- the string to inspect.- Returns:
- Returns
true
is the string is qualifiedfalse
otherwise.
-
blankString
public static final String blankString(int length)
Creates an empty string of given length.- Parameters:
length
- the length of string.- Returns:
- the empty string.
-
getLastToken
public static final String getLastToken(String value, String delimiter)
Gets the last token for spcefied dlimiter and string.- Parameters:
value
- the string to parsedelimiter
- the delimiter used for parsing.- Returns:
-
main
public static void main(String[] args)
-
-