public class StringUtil extends Object
| Constructor and Description |
|---|
StringUtil() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
containsIgnoreCase(String[] array,
String value)
Check if the given array contains the given value (with case-insensitive
comparison).
|
org.threeten.bp.LocalDate |
convertStringToDate(String date) |
org.threeten.bp.LocalDateTime |
convertStringToLocalDateTime(String date) |
org.threeten.bp.OffsetDateTime |
convertStringToOffsetDateTime(String date) |
static String |
join(String[] array,
String separator)
Join an array of strings with the given separator.
|
public static boolean containsIgnoreCase(String[] array, String value)
array - The arrayvalue - The value to searchpublic static String join(String[] array, String separator)
Note: This might be replaced by utility method from commons-lang or guava someday if one of those libraries is added as dependency.
array - The array of stringsseparator - The separatorpublic org.threeten.bp.LocalDate convertStringToDate(String date) throws IOException
IOExceptionpublic org.threeten.bp.OffsetDateTime convertStringToOffsetDateTime(String date) throws IOException
IOExceptionpublic org.threeten.bp.LocalDateTime convertStringToLocalDateTime(String date) throws IOException
IOExceptionCopyright © 2020. All rights reserved.