Package org.jobrunr.utils
Class StringUtils
java.lang.Object
org.jobrunr.utils.StringUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
capitalize
(String s) static boolean
static boolean
static String
lenientSubstringBetween
(String s, String open, String close) Returns the String between the given open and close String.static String
md5Checksum
(String input) static String
substringAfter
(String s, String splitter) static String
substringAfterLast
(String s, String splitter) static String
substringBefore
(String s, String splitter) static String
substringBeforeLast
(String s, String splitter) static String
substringBetween
(String s, String open, String close) static String
-
Method Details
-
isNullOrEmpty
-
isNotNullOrEmpty
-
capitalize
-
substringBefore
-
substringAfter
-
substringBeforeLast
-
substringAfterLast
-
substringBetween
-
lenientSubstringBetween
Returns the String between the given open and close String. If the closing String is not present, it will return everything after the opening String.- Parameters:
s
- the String containing the substring, may be nullopen
- the String before the substring, may not be nullclose
- the String after the substring, may not be null- Returns:
- Returns the String between the given open and close String when possible or everything after the opening String.
-
md5Checksum
-
urlEncode
-