public final class Strings extends Object
| Modifier and Type | Method and Description |
|---|---|
static String |
cutLastZeroDigit(String version) |
static String |
getClassShortName(String className)
Returns the base class name, i.e.
|
static boolean |
isNullOrEmpty(String text)
Returns true if the given text is null or empty string or has null as the value
|
static String |
wrapCamelCaseWords(String option,
int watermark,
String lineSep)
To wrap long camel cased texts by words.
|
static String |
wrapWords(String line,
String wordSep,
String lineSep,
int watermark,
boolean wrapLongWords)
To wrap a big line by words.
|
public static boolean isNullOrEmpty(String text)
public static String wrapCamelCaseWords(String option, int watermark, String lineSep)
option - the option which is camel cased.watermark - a watermark to denote the size to cut afterlineSep - the new line to use when breaking into a new linepublic static String wrapWords(String line, String wordSep, String lineSep, int watermark, boolean wrapLongWords)
line - the big linewordSep - the word separatorlineSep - the new line to use when breaking into a new linewatermark - a watermark to denote the size to cut afterwrapLongWords - whether to wrap long wordspublic static String getClassShortName(String className)
className - The class name which base class is to be computed.Apache Camel