public class Utils extends Object
Constructor and Description |
---|
Utils() |
Modifier and Type | Method and Description |
---|---|
static int |
getDamerauLevenshteinDistance(String s,
String t) |
static boolean |
isEmpty(CharSequence val)
Check if the CharSequence supplied is empty.
|
static boolean |
isEmpty(CharSequence[] strings)
Check if the CharSequence array supplied is empty.
|
static boolean |
isEmpty(List<?> list)
Check if the list supplied is empty.
|
static boolean |
isEmpty(Object[] array)
Check if the array supplied is empty.
|
static String |
resolvePassword(VariableSpace variables,
String password)
Resolves password from variable if it's necessary and decrypts if the password was encrypted
|
public static boolean isEmpty(CharSequence val)
val
- The stringBuffer to checkpublic static boolean isEmpty(CharSequence[] strings)
strings
- The string array to checkpublic static boolean isEmpty(Object[] array)
array
- The array to checkpublic static boolean isEmpty(List<?> list)
list
- the list to checkpublic static String resolvePassword(VariableSpace variables, String password)
variables
- VariableSpace is used for resolvingpassword
- the password for resolving and decrypting