public final class Strings extends Object
| Modifier and Type | Field and Description |
|---|---|
static Function<String,String> |
decamelize |
static String |
TAB |
| Modifier and Type | Method and Description |
|---|---|
static String |
defaultIfBlank(String str,
String defaultStr) |
static void |
escape(Appendable output,
String arg) |
static String |
escape(String arg) |
static boolean |
isBlank(String str) |
static String |
joinAsLines(String... elements)
Joining independent lines from provided elements into one line with
System.lineSeparator after
each element |
static String |
ljust(String str,
int columnWidth)
Use this to standardize the width of some text output to all be left-justified and space-padded
on the right side to fill up the given column width.
|
static String |
prettyPrint(Object o) |
static String |
rjust(String str,
int columnWidth)
Use this to standardize the width of some text output to all be right-justified and space-padded
on the left side to fill up the given column width.
|
public static final String TAB
public static boolean isBlank(String str)
public static String joinAsLines(String... elements)
System.lineSeparator after
each elementelements - - lines to joinpublic static void escape(Appendable output, String arg) throws IOException
IOExceptionpublic static String ljust(String str, int columnWidth)
str - the text to formatcolumnWidth - the column widthpublic static String rjust(String str, int columnWidth)
str - the text to formatcolumnWidth - the column widthCopyright © 2002–2015 The Neo4j Graph Database Project. All rights reserved.