|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.maven.util.StringTool
Constructor Summary | |
StringTool()
|
Method Summary | |
java.util.List |
splitStringAtLastDelim(java.lang.String s,
java.lang.String delim)
Splits a string at the last delimiter. |
static java.lang.String |
trim(java.lang.String s)
Removes all whitespace characters from the start and end of a String. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public StringTool()
Method Detail |
public java.util.List splitStringAtLastDelim(java.lang.String s, java.lang.String delim)
s
- the string to be splitdelim
- the delimiter
public static java.lang.String trim(java.lang.String s)
Removes all whitespace characters from the start and end of a String.
This is similar to trim(String)
but removes whitespace.
Whitespace is defined by Character.isWhitespace(char)
.
s
- the String to remove characters from, may be null
null
if null String input
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |