|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectco.cask.common.StringUtils
public class StringUtils
Utility for strings.
| Nested Class Summary | |
|---|---|
static class |
StringUtils.TraditionalBinaryPrefix
The traditional binary prefixes, kilo, mega, ..., exa, which can be represented by a 64-bit integer. |
| Field Summary | |
|---|---|
static String[] |
EMPTY_STRING_ARRAY
|
| Constructor Summary | |
|---|---|
StringUtils()
|
|
| Method Summary | |
|---|---|
static String |
arrayToString(String[] strs)
Given an array of strings, return a comma-separated list of its elements. |
static Collection<String> |
getStringCollection(String str)
Returns a collection of strings. |
static String[] |
getStrings(String str)
Returns an arraylist of strings. |
static Collection<String> |
getTrimmedStringCollection(String str)
Splits a comma separated value String, trimming leading and trailing whitespace on each value. |
static String[] |
getTrimmedStrings(String str)
Splits a comma separated value String, trimming leading and trailing whitespace on each value. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String[] EMPTY_STRING_ARRAY
| Constructor Detail |
|---|
public StringUtils()
| Method Detail |
|---|
public static String[] getStrings(String str)
str - the comma seperated string values
public static Collection<String> getStringCollection(String str)
str - comma seperated string values
ArrayList of string valuespublic static Collection<String> getTrimmedStringCollection(String str)
String, trimming leading and trailing whitespace on each value.
str - a comma separated Collection of String valuespublic static String[] getTrimmedStrings(String str)
String, trimming leading and trailing whitespace on each value.
str - a comma separated String valuespublic static String arrayToString(String[] strs)
strs - Array of strings
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||