public class Java extends Object
| Modifier and Type | Field and Description |
|---|---|
static CharMapper |
charMapper |
static CharMapper |
stringMapper |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isAllSpace(CharSequence cs)
Test whether a
CharSequence contains all whitespace, using the Java source code
rules for whitespace. |
static String |
quote(String str)
Convert a string to the quoted form as used in Java source code, converting non-ASCII
characters as appropriate.
|
static String |
quoteCharacter(char ch)
Convert a character to the quoted form as used in Java source code, converting non-ASCII
characters as appropriate.
|
static CharSequence |
trim(CharSequence cs)
Trim whitespace from the start and end of a
CharSequence, using the Java source
code rules for whitespace. |
static String |
trim(String str)
Trim whitespace from the start and end of a
String, using the Java source code
rules for whitespace. |
public static final CharMapper stringMapper
public static final CharMapper charMapper
public static String quote(String str)
null string will be converted to "null".str - the original stringpublic static String quoteCharacter(char ch)
ch - the characterpublic static CharSequence trim(CharSequence cs)
CharSequence, using the Java source
code rules for whitespace.cs - the CharSequenceCharSequencepublic static String trim(String str)
String, using the Java source code
rules for whitespace.public static boolean isAllSpace(CharSequence cs)
CharSequence contains all whitespace, using the Java source code
rules for whitespace.cs - the CharSequencetrue if the CharSequence contains all whitespaceCopyright © 2020. All rights reserved.