|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.danielbechler.util.Strings
public class Strings
Method Summary | |
---|---|
static String |
capitalize(String s)
|
static boolean |
hasText(String s)
|
static String |
indent(int times,
String text)
|
static boolean |
isEmpty(String s)
|
static String |
join(String delimiter,
Collection<?> elements)
Same as join(String, Object...) but with a Collection instead of an Array for the
elements. |
static String |
join(String delimiter,
Object... elements)
Joins all non-null elements of the given elements into one String. |
static String |
toPropertyExpression(String s)
|
static String |
toSingleLineString(Object object)
|
static String |
toUnderscoreCase(String s)
Converts a camel-cased character sequence (e.g. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static boolean hasText(String s)
public static boolean isEmpty(String s)
public static String capitalize(String s)
public static String toPropertyExpression(String s)
public static String toUnderscoreCase(String s)
s
- The text to convert.
public static String join(String delimiter, Object... elements)
elements
into one String.
delimiter
- Inserted as separator between consecutive elements.elements
- The elements to join.
public static String join(String delimiter, Collection<?> elements)
join(String, Object...)
but with a Collection
instead of an Array for the
elements.
join(String, java.util.Collection)
public static String toSingleLineString(Object object)
public static String indent(int times, String text)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |