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 boolean[][] |
normalizeArrays(int normalizeToLength,
boolean[]... arraysToNormalize)
Normalize boolean array lengths for synchronization of arrays within steps
|
static int[][] |
normalizeArrays(int normalizeToLength,
int[]... arraysToNormalize)
Normalize int array lengths for synchronization of arrays within steps
|
static long[][] |
normalizeArrays(int normalizeToLength,
long[]... arraysToNormalize)
Normalize long array lengths for synchronization of arrays within steps
|
static short[][] |
normalizeArrays(int normalizeToLength,
short[]... arraysToNormalize)
Normalize short array lengths for synchronization of arrays within steps
|
static String[][] |
normalizeArrays(int normalizeToLength,
String[]... arraysToNormalize)
Normalize String array lengths for synchronization of arrays within steps
|
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 decryptingpublic static String[][] normalizeArrays(int normalizeToLength, String[]... arraysToNormalize)
public static long[][] normalizeArrays(int normalizeToLength, long[]... arraysToNormalize)
public static int[][] normalizeArrays(int normalizeToLength, int[]... arraysToNormalize)
public static boolean[][] normalizeArrays(int normalizeToLength, boolean[]... arraysToNormalize)
public static short[][] normalizeArrays(int normalizeToLength, short[]... arraysToNormalize)
Copyright © 2020 Hitachi Vantara. All rights reserved.