Here you can find the source of nvl(T value, String defValue)
public static <T> String nvl(T value, String defValue)
//package com.java2s; //License from project: Apache License public class Main { public static <T> String nvl(T value, String defValue) { return ((value != null) ? String.valueOf(value) : defValue); }//from ww w. j av a 2 s . com public static <T> String nvl(T value) { return nvl(value, ""); } }