public class Strings extends Object
Modifier and Type | Method and Description |
---|---|
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 |
toSingleLineString(Object object) |
public static boolean hasText(String s)
public static boolean isEmpty(String s)
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 © 2016. All rights reserved.