public class StringUtil extends Object
Modifier and Type | Class and Description |
---|---|
static class |
StringUtil.ToStringBuilder |
Modifier and Type | Field and Description |
---|---|
static Charset |
CHARSET_UTF_8
Eight-bit UCS Transformation Format
|
static String |
UTF_8
String constant for UTF-8.
|
Modifier and Type | Method and Description |
---|---|
static StringUtil.ToStringBuilder |
build(Object instance) |
static String |
join(char delimiter,
String... parts)
Joins the given Strings with the delimiter.
|
static String |
join(List<String> parts)
Effectively calls
join('\n', parts) . |
static String |
join(String... parts)
Effectively calls
join('\n', parts) . |
static List<String> |
split(String text,
char delimiter)
Splits the given text by the given delimiter.
|
static List<String> |
splitLines(String text)
Effectively calls
split(text, '\n') . |
public static final String UTF_8
public static final Charset CHARSET_UTF_8
public static List<String> splitLines(String text)
split(text, '\n')
.text
- public static List<String> split(String text, char delimiter)
text
- delimiter
- public static String join(String... parts)
join('\n', parts)
.parts
- public static String join(List<String> parts)
join('\n', parts)
.parts
- public static String join(char delimiter, String... parts)
delimiter
- parts
- public static StringUtil.ToStringBuilder build(Object instance)
Copyright © 2014. All Rights Reserved.