Class Utilities


  • public class Utilities
    extends Object
    • Constructor Detail

      • Utilities

        public Utilities()
    • 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)