Class StrUtil
java.lang.Object
pl.decerto.hyperon.runtime.helper.StrUtil
- Author:
- przemek hertel
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringReplaces all occurrences of many spaces adjacent to each other in one space character.static booleanisBlank(CharSequence str) static booleanisEmpty(CharSequence str) static booleanstatic Stringstatic Stringrepeat(char ch, int n) static String
-
Method Details
-
compactSpaces
Replaces all occurrences of many spaces adjacent to each other in one space character. Does not trim. If argument is null - the function returns null.- Parameters:
s- String object to remove all occurrences of many spaces adjacent to each other in one space character- Returns:
- input s value without many spaces adjacent to each other or if input s value is null return null
-
trunc
-
isInteger
-
lowercase
-
isEmpty
-
isBlank
-
repeat
-