Here you can find the source of nvl(String instr, String defaultValue)
public static String nvl(String instr, String defaultValue)
//package com.java2s; //License from project: Apache License public class Main { public static String nvl(String instr) { return nvl(instr, ""); }/*from w w w . jav a 2s .com*/ public static String nvl(String instr, String defaultValue) { return instr != null && !"".equals(instr) ? instr : defaultValue; } public static boolean equals(String str1, String str2) { return str1 == null && str2 == null ? true : str1 != null && str1.equals(str2); } }