List of utility methods to do Object NVL
void | nvlArr(String[][] planarArr) nvl Arr if (!("".equals(planarArr)) && !(planarArr == null)) { for (int i = 0; i < planarArr.length; i++) { for (int j = 0; j < planarArr[i].length; j++) { if (planarArr[i][j] == null || "null".equalsIgnoreCase(planarArr[i][j].trim())) { planarArr[i][j] = ""; System.out.println("\nplanarArr[" + i + "][" + j + "]=null!\n"); |
String | nvlDefault(String val) Nvl default. return (val == null || val.isEmpty()) ? DISPLAY_DEFAULT : val; |
String | nvlEmptyString(String object) Returns an empty string if the object is null, otherwise the object. return object == null ? "" : object; |
Integer | nvlInteger(String pString, Integer pInteger) nvl Integer if (isNull(pString)) { return pInteger; if (pString.equals("unbounded")) { return INTEGER_MAX_VALUE; return Integer.valueOf(pString); |
Long | nvlLang(Object contend) nvl Lang return contend != null ? (Long.parseLong(contend.toString())) : 0L;
|
String | NVLn(String str, String replace) NVLn - fix null value (numeric) return NVL(str, replace);
|
String | nvlt(Object o) nvlt return nvl(o).trim();
|