Java Utililty Methods Object NVL

List of utility methods to do Object NVL

Description

The list of methods to do Object NVL are organized into topic(s).

Method

voidnvlArr(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");
StringnvlDefault(String val)
Nvl default.
return (val == null || val.isEmpty()) ? DISPLAY_DEFAULT : val;
StringnvlEmptyString(String object)
Returns an empty string if the object is null, otherwise the object.
return object == null ? "" : object;
IntegernvlInteger(String pString, Integer pInteger)
nvl Integer
if (isNull(pString)) {
    return pInteger;
if (pString.equals("unbounded")) {
    return INTEGER_MAX_VALUE;
return Integer.valueOf(pString);
LongnvlLang(Object contend)
nvl Lang
return contend != null ? (Long.parseLong(contend.toString())) : 0L;
StringNVLn(String str, String replace)
NVLn - fix null value (numeric)
return NVL(str, replace);
Stringnvlt(Object o)
nvlt
return nvl(o).trim();