public class StringTool
extends java.lang.Object
Constructor and Description |
---|
StringTool() |
Modifier and Type | Method and Description |
---|---|
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.
|
public java.util.List splitStringAtLastDelim(java.lang.String s, java.lang.String delim)
s
- the string to be splitdelim
- the delimiterpublic 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 nullnull
if null String inputCopyright © 2001-2013 Apache Software Foundation. All Rights Reserved.