io.lettuce.core.internal with Lettuce 6.@Deprecated public class LettuceStrings extends Object
String checks. This class is part of the internal API and may change without further notice.| Modifier and Type | Method and Description |
|---|---|
static String |
arrayToDelimitedString(Object[] arr,
String delim)
Deprecated.
Convert a
String array into a delimited String (e.g. |
static String |
collectionToDelimitedString(Collection<?> coll,
String delim,
String prefix,
String suffix)
Deprecated.
Convert a
Collection to a delimited String (e.g. |
static String |
digest(byte[] script)
Deprecated.
Create SHA1 digest from Lua script.
|
static String |
digest(ByteBuffer script)
Deprecated.
Create SHA1 digest from Lua script.
|
static boolean |
isEmpty(CharSequence cs)
Deprecated.
Checks if a CharSequence is empty ("") or null.
|
static boolean |
isNotEmpty(CharSequence cs)
Deprecated.
Checks if a CharSequence is not empty ("") and not null.
|
static String |
string(double n)
Deprecated.
Convert
double to String. |
static double |
toDouble(String s)
Deprecated.
Convert
String to double. |
public static boolean isEmpty(CharSequence cs)
cs - the char sequence.true if empty.public static boolean isNotEmpty(CharSequence cs)
cs - the char sequence.true if not empty.public static String string(double n)
n - the double.n.public static double toDouble(String s)
String to double. If s is +inf/-inf, returns positive/negative
infinity. If s is +nan/-nan, returns NaN.s - string representation of the number.double value.public static String digest(byte[] script)
script - the script.public static String digest(ByteBuffer script)
script - the script.public static String arrayToDelimitedString(Object[] arr, String delim)
String array into a delimited String (e.g. CSV).
Useful for toString() implementations.
arr - the array to display.delim - the delimiter to use (typically a ",").String.public static String collectionToDelimitedString(Collection<?> coll, String delim, String prefix, String suffix)
coll - the Collection to convert.delim - the delimiter to use (typically a ",").prefix - the String to start each element with.suffix - the String to end each element with.String.Copyright © 2021 lettuce.io. All rights reserved.