public class Utils
extends java.lang.Object
| Constructor and Description |
|---|
Utils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
escapeJsonString(java.lang.StringBuilder b,
java.lang.CharSequence text)
Source: https://stackoverflow.com/a/69338077/6835932
|
static boolean |
isAsciiCapitalLetter(char ch)
Tells whether given character is valid ASCII capital letter [A-Z]
|
static boolean |
isAsciiDigit(char ch)
Tells whether given character is valid ASCII digit [0-9]
|
static boolean |
isAsciiLetter(char ch)
Tells whether given character is valid ASCII letter [A-Za-z]
|
static boolean |
isAsciiLetterOrDigit(char ch)
Tells whether given character is valid ASCII letter or digit [0-9A-Za-z]
|
static boolean |
isAsciiLowercaseLetter(char ch)
Tells whether given character is valid ASCII lowercase letter [a-z]
|
static void |
sleep(long milliseconds)
Sleeps given amount of time.
|
public static void escapeJsonString(java.lang.StringBuilder b,
java.lang.CharSequence text)
b - Reference to exiting StringBuilder where given text will be appended.text - CharSequence which will be escaped and appended to StringBuilder b.public static void sleep(long milliseconds)
milliseconds - Milliseconds count.java.lang.RuntimeException - When any thread has interrupted this thread.public static boolean isAsciiCapitalLetter(char ch)
ch - Character to check.ch is a capital letter.public static boolean isAsciiLowercaseLetter(char ch)
ch - Character to check.ch is a lowercase letter.public static boolean isAsciiLetter(char ch)
ch - Character to check.ch is a letter.public static boolean isAsciiDigit(char ch)
ch - Character to check.ch is a digit.public static boolean isAsciiLetterOrDigit(char ch)
ch - Character to check.ch is a letter or digit.