Class StringUtils
java.lang.Object
org.jobrunr.utils.StringUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic Stringcapitalize(String s) static booleanstatic booleanstatic booleanstatic StringlastMatchedSubstringBetween(String s, String open, String close) Returns the last matched String between the given open and close String.static StringlenientSubstringBetween(String s, String open, String close) Returns the String between the given open and close String.static Stringmd5Checksum(String input) static StringsubstringAfter(String s, String splitter) static StringsubstringAfterLast(String s, String splitter) static StringsubstringBefore(String s, String splitter) static StringsubstringBeforeLast(String s, String splitter) static StringsubstringBetween(String s, String open, String close) static String
-
Method Details
-
isNullOrEmpty
-
isNotNullOrEmpty
-
isNullEmptyOrBlank
-
capitalize
-
substringBefore
-
substringAfter
-
substringBeforeLast
-
substringAfterLast
-
substringBetween
-
lastMatchedSubstringBetween
Returns the last matched String between the given open and close 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 last matched String between the given open and close String when possible or null.
-
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
-