|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.smartics.exceptions.report.utils.StringFunction
public final class StringFunction
Utils for String functions.
Method Summary | |
---|---|
static String |
capitalize(String input) This method transforms the first character to upper case and returns the result. |
static int |
indexOfFirstWhiteSpace(int offset, StringBuilder buffer) Returns the index of the first white space, starting at the given offset. |
static int |
indexOfFirstWhiteSpace(String string) Returns the index of the first white space. |
static int |
indexOfFirstWhiteSpace(StringBuilder buffer) Returns the index of the first white space. |
static int |
indexOfSecondWhiteSpace(String string) Returns the index of the second white space. |
static int |
indexOfSecondWhiteSpace(StringBuilder buffer) Returns the index of the second white space. |
static List<String> |
split(String delimiterSeparatedElements) Parses the string and returns the comma separated elements as a list of String objects. |
static List<String> |
split(String delimiterSeparatedElements, String delimiters) Parses the string and returns the delimiter separated elements as a list of String objects. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static String capitalize(String input)
input
- the string to transform.
public static List<String> split(String delimiterSeparatedElements)
null
or contains no character (its length is zero), the empty list is returned.
delimiterSeparatedElements
- the string to parse, trimmed from whitespaces.
public static List<String> split(String delimiterSeparatedElements, String delimiters)
null
or contains no character (its length is zero), the empty list is returned.
delimiterSeparatedElements
- the string to parse, trimmed from whitespaces.
delimiters
- a string that contains all delimiters used to split the string.
public static int indexOfFirstWhiteSpace(StringBuilder buffer)
buffer
- the buffer to be analyzed.
-1
if there is none.
public static int indexOfSecondWhiteSpace(StringBuilder buffer)
buffer
- the buffer to be analyzed.
-1
if there is none.
public static int indexOfFirstWhiteSpace(int offset, StringBuilder buffer)
offset
- the index to start analyzing.
buffer
- the buffer to be analyzed.
-1
if there is none.
public static int indexOfFirstWhiteSpace(String string)
string
- the string to be analyzed.
-1
if there is none.
public static int indexOfSecondWhiteSpace(String string)
string
- the string to be analyzed.
-1
if there is none.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |