|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hivemind.util.StringUtils
public class StringUtils
A subset of the utilities available in commons-lang StringUtils. It's all about reducing dependencies, baby!
| Constructor Summary | |
|---|---|
StringUtils()
|
|
| Method Summary | |
|---|---|
static java.lang.String |
capitalize(java.lang.String input)
Converts a string such that the first character is upper case. |
static java.lang.String |
join(java.lang.String[] input,
char separator)
|
static java.lang.String |
replace(java.lang.String string,
java.lang.String pattern,
java.lang.String replacement)
Replaces all occurrences of pattern in
string with replacement |
static java.lang.String[] |
split(java.lang.String input)
Splits an input string into a an array of strings, seperating at commas. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StringUtils()
| Method Detail |
|---|
public static java.lang.String[] split(java.lang.String input)
input - the string to split, possibly null or empty
public static java.lang.String capitalize(java.lang.String input)
input - the input string (possibly empty)
public static java.lang.String join(java.lang.String[] input,
char separator)
public static java.lang.String replace(java.lang.String string,
java.lang.String pattern,
java.lang.String replacement)
pattern in
string with replacement
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||