public class LettuceStrings extends Object
String
checks.Modifier and Type | Method and Description |
---|---|
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.
|
public static boolean isEmpty(CharSequence cs)
cs
- the char sequencepublic static boolean isNotEmpty(CharSequence cs)
cs
- the char sequencepublic static String string(double n)
+inf
and -inf
.n
- the double.n
public static String digest(byte[] script)
script
- the scriptpublic static String digest(ByteBuffer script)
script
- the scriptCopyright © 2016. All rights reserved.