public final class StringHelper extends Object
Modifier and Type | Method and Description |
---|---|
static String |
after(String text,
String after) |
static String |
before(String text,
String before) |
static String |
between(String text,
String after,
String before) |
static String |
camelDashToTitle(String value)
Converts the value to use title style instead of dash cased
|
static String |
cutLastZeroDigit(String version) |
static String |
getClassShortName(String className)
Returns the base class name, i.e.
|
static String |
indentCollection(String indent,
Collection<String> list) |
static boolean |
isEmpty(String s) |
static String |
wrapCamelCaseWords(String option,
int watermark,
String newLine)
To wrap long camel cased texts by words.
|
public static boolean isEmpty(String s)
public static String indentCollection(String indent, Collection<String> list)
public static String camelDashToTitle(String value)
public static String wrapCamelCaseWords(String option, int watermark, String newLine)
option
- the option which is camel cased.watermark
- a watermark to denote the size to cut afternewLine
- the new line to use when breaking into a new linepublic static String getClassShortName(String className)
className
- The class name which base class is to be computed.Apache Camel