|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.gjt.rec.util.Stringz
Field Summary | |
static String |
REVISION
|
Method Summary | |
static String |
join(Collection elements,
String delimiter)
Joins the string representations of a Collection of objects (which might just be strings) into a single string with each element separated by (delimiter). |
static String |
lowerCaseInitial(String str)
|
static Collection |
split(String str,
String delimiters)
Splits a string into an ordered collection of token strings where each token is separated from the others by one or more characters in (delimiters). |
static String[] |
splitToArray(String str,
String delimiters)
Functionally, this method is the same as split(str, delimiters).toArray(), but this implementation is faster and thrashes the heap less. |
static String |
upperCaseInitial(String str)
|
static String |
valueOf(Object obj)
This method behaves much like String.valueOf(Object) except that it augments the output of many platform classes that have toString() implementations that are broken for debugging purpose, such as java.beans.PropertyChangeEvent, which dumps the source object, but none of the other properties. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String REVISION
Method Detail |
public static String lowerCaseInitial(String str)
public static String upperCaseInitial(String str)
public static String join(Collection elements, String delimiter)
elements
- a collection of elements to joindelimiter
- the delimiter to use to separate each element
NullPointerException
- if either argument is nullpublic static Collection split(String str, String delimiters)
The order of the collection is determined by the order of the elements in (str).
str
- the string to splitdelimiters
- the set of delimiter characters
NullPointerException
- if either argument is nullpublic static String[] splitToArray(String str, String delimiters)
public static String valueOf(Object obj)
obj
- the object for which to obtain a debug string
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |