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 . |
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.n
public 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 scriptCopyright © 2018 lettuce.io. All rights reserved.