public final class StringUtils extends Object
Modifier and Type | Method and Description |
---|---|
static boolean |
isJsonObject(String s)
Check if a given string is a JSON object.
|
static String |
join(Collection<String> chunks,
String delimiter)
Join a collection of strings together into one.
|
static void |
validateKey(String key,
boolean binary)
Check if a given key is valid to transmit.
|
public static String join(Collection<String> chunks, String delimiter)
chunks
- the chunks to join.delimiter
- the delimiter between the keys.public static boolean isJsonObject(String s)
s
- the input string.public static void validateKey(String key, boolean binary)
key
- the key to check.binary
- if binary protocol is used.Copyright © 2023. All rights reserved.