public final class StringUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static String |
simpleClassName(Class<?> clazz)
Generates a simplified name from a
Class. |
static String |
simpleClassName(Object o)
The shortcut to
simpleClassName(o.getClass()). |
static String[] |
split(String value,
char delim)
Splits the specified
String with the specified delimiter. |
public static final String NEWLINE
public static String[] split(String value, char delim)
String with the specified delimiter. This operation is a simplified and optimized
version of String.split(String).public static String simpleClassName(Object o)
simpleClassName(o.getClass()).public static String simpleClassName(Class<?> clazz)
Class. Similar to Class.getSimpleName(), but it works fine
with anonymous classes.Copyright © 2008-2013 The Netty Project. All Rights Reserved.