public class VisorTaskUtils extends Object
| Constructor and Description |
|---|
VisorTaskUtils() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
boolValue(String propName,
boolean dflt)
Returns boolean value from system property or provided function.
|
static String |
compactArray(Object[] arr)
Joins array elements to string.
|
static String |
compactClass(Object obj) |
static Object |
compactObject(Object obj)
Returns compact class host.
|
static int[] |
concat(int[] a,
int[] b)
Concat two arrays in one.
|
static String |
escapeName(String name) |
static Integer |
intValue(String propName,
Integer dflt)
Returns boolean value from system property or provided function.
|
static boolean |
safeEquals(String a,
String b) |
public static String escapeName(@Nullable String name)
name - Grid-style nullable name.null replaced to <default>.public static boolean safeEquals(@Nullable String a, @Nullable String b)
a - First name.b - Second name.true if both names equals.public static int[] concat(int[] a,
int[] b)
a - First array.b - Second array.@Nullable public static Object compactObject(Object obj)
obj - Object to compact.@Nullable public static String compactArray(Object[] arr)
arr - Array.public static Integer intValue(String propName, Integer dflt)
propName - System property name.dflt - Function that returns Integer.Integer valuepublic static boolean boolValue(String propName, boolean dflt)
propName - System property host.dflt - Function that returns Boolean.Boolean valueCopyright © 2014. All rights reserved.