Package com.h2tcoin.takamakachain.utils
Class StringUtils
- java.lang.Object
-
- com.h2tcoin.takamakachain.utils.StringUtils
-
public class StringUtils extends Object
- Author:
- iris.dimni
-
-
Constructor Summary
Constructors Constructor Description StringUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static String
arrayToString(String[] input)
returns the elements of an array as string separated by spacestatic KeyContexts.TransactionType
getTypeFromString(String input)
Returns the transaction type from a given string if it's an exact matchstatic Boolean
isNullOrWhiteSpace(String input)
Deprecated.use an equivalent method from org.apache.commons.lang3.StringUtilsstatic String
printList(ArrayList<?> input)
returns a string of coma separated values of the liststatic <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 Stringstatic Integer
tryParse(String text)
-
-
-
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:
-
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:
-
-