Class Utilities
- java.lang.Object
-
- org.vedantatree.expressionoasis.utils.Utilities
-
public class Utilities extends Object
-
-
Constructor Summary
Constructors Constructor Description Utilities()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
assertNotNullArgument(Object attribute)
static void
assertNotNullArgument(Object attribute, String attributeName)
static String
convertCamelToTitleString(String inpString)
Converts a camel case string into title case string.static int[]
getIndexArray(String combinedString)
static void
printMapEntries(Map map)
displays map's keys and its value.static boolean
validateEmailID(String emailID)
Validates email address.
-
-
-
Method Detail
-
assertNotNullArgument
public static void assertNotNullArgument(Object attribute, String attributeName)
-
assertNotNullArgument
public static void assertNotNullArgument(Object attribute)
-
validateEmailID
public static boolean validateEmailID(String emailID)
Validates email address.- Parameters:
emailID
- : email address to be verified- Returns:
- boolean: true if varified correctly false if email address is incorrect
-
convertCamelToTitleString
public static String convertCamelToTitleString(String inpString)
Converts a camel case string into title case string.- Parameters:
inpString
- : string to be converted- Returns:
- String coverted string
-
printMapEntries
public static void printMapEntries(Map map)
displays map's keys and its value.- Parameters:
map
-
-
getIndexArray
public static int[] getIndexArray(String combinedString)
-
-