public class Strings extends Object
| Modifier and Type | Method and Description |
|---|---|
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.
|
public static boolean hasText(String s)
public static boolean isEmpty(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)Copyright © 2012. All Rights Reserved.