Class StringUtils


  • public class StringUtils
    extends Object
    Author:
    iris.dimni
    • Constructor Detail

      • StringUtils

        public StringUtils()
    • Method Detail

      • isNullOrWhiteSpace

        public static Boolean isNullOrWhiteSpace​(String input)
        Deprecated.
        use an equivalent method from org.apache.commons.lang3.StringUtils
        Parameters:
        input -
        Returns:
      • printList

        public static String printList​(ArrayList<?> input)
        returns a string of coma separated values of the list
        Parameters:
        input -
        Returns:
      • stringToList

        public static <T> ArrayList<T> stringToList​(String input,
                                                    Class T,
                                                    String separator)
        Deprecated the cast to the defined type doesn't change result objects type, all elements are saved as String
        Type Parameters:
        T -
        Parameters:
        input -
        T -
        separator -
        Returns:
      • tryParse

        public static Integer tryParse​(String text)
        Parameters:
        text -
        Returns:
      • arrayToString

        public static String arrayToString​(String[] input)
        returns the elements of an array as string separated by space
        Parameters:
        input -
        Returns:
      • getTypeFromString

        public static KeyContexts.TransactionType getTypeFromString​(String input)
        Returns the transaction type from a given string if it's an exact match
        Parameters:
        input -
        Returns: