| Modifier and Type | Method and Description |
|---|---|
static String |
arrayToDelimitedString(Object[] arr,
String delim)
Convert a
String array into a delimited String (e.g. |
static String |
collectionToDelimitedString(Collection<?> coll,
String delim,
String prefix,
String suffix)
Convert a
Collection to a delimited String (e.g. |
static String |
digest(byte[] script)
Create SHA1 digest from Lua script.
|
static String |
digest(ByteBuffer script)
Create SHA1 digest from Lua script.
|
static boolean |
isEmpty(CharSequence cs)
Checks if a CharSequence is empty ("") or null.
|
static boolean |
isNotEmpty(CharSequence cs)
Checks if a CharSequence is not empty ("") and not null.
|
static String |
string(double n)
Convert
double to String. |
static double |
toDouble(String s)
Convert
String to double. |
public static boolean isEmpty(CharSequence cs)
cs - the char sequencepublic static boolean isNotEmpty(CharSequence cs)
cs - the char sequencepublic static String string(double n)
n - the double.npublic static double toDouble(String s)
s - string representation of the numberdouble value.public static String digest(byte[] script)
script - the scriptpublic static String digest(ByteBuffer script)
script - the scriptpublic static String arrayToDelimitedString(Object[] arr, String delim)
String array into a delimited String (e.g. CSV).
Useful for toString() implementations.
arr - the array to displaydelim - the delimiter to use (typically a ",")Stringpublic static String collectionToDelimitedString(Collection<?> coll, String delim, String prefix, String suffix)
coll - the Collection to convertdelim - the delimiter to use (typically a ",")prefix - the String to start each element withsuffix - the String to end each element withStringCopyright © 2019 lettuce.io. All rights reserved.