public interface Strings
| Modifier and Type | Method and Description |
|---|---|
static boolean |
allNotNullOrEmpty(String... strings) |
static boolean |
allNullOrEmpty(String... strings) |
static boolean |
containsIgnoreCase(String str1,
String str2) |
static String |
createPrettyEntityString(Map<String,Object> attributes,
Class<?> entityClass) |
static boolean |
isNotNullOrEmpty(String string) |
static boolean |
isNullOrEmpty(char[] string) |
static boolean |
isNullOrEmpty(String string) |
static String |
join(String... strings) |
static String |
lastOccurrence(String lastPartToMatch)
Returns a regex to match the specified string only at the end of other strings.
|
static boolean |
startsWithIgnoreCase(String str1,
String str2) |
static String |
stripStart(String str,
String strip)
Removes the "strip" string from the start of "str.
|
static boolean |
wildcardedMatch(String checkedString,
List<String> wildcardedStringCollection)
Checks whether a string is matches any of the strings in a collection.
|
static boolean isNullOrEmpty(String string)
static boolean isNullOrEmpty(char[] string)
static boolean isNotNullOrEmpty(String string)
static boolean allNullOrEmpty(String... strings)
static boolean allNotNullOrEmpty(String... strings)
static String lastOccurrence(String lastPartToMatch)
lastPartToMatch - static boolean wildcardedMatch(String checkedString, List<String> wildcardedStringCollection)
checkedString - The string we compare against a collection of possibly wildcarded stringswildcardedStringCollection - A collection of strings any of which may contain wildcardsstatic String stripStart(String str, String strip)
str - the full stringstrip - the part to remove from the startCopyright © 2022 SAP SE. All rights reserved.