public final class StringHelper
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
removeExtraSpaces(java.lang.String str)
Removes extra (more than one) whitespace characters from any place of the string.
Examples: " aaa bbb ccc ddd " becomes "aaa bbb ccc ddd" |
static java.lang.String |
wrapLogMessage(java.lang.String message)
Wraps the given string into two lines containing "=" symbols.
|
public static java.lang.String removeExtraSpaces(java.lang.String str)
public static java.lang.String wrapLogMessage(java.lang.String message)
For example:
=============== Some line Some other line ===============