Here you can find the source of nvl2(Object obj, Object obj1, Object obj2)
public static Object nvl2(Object obj, Object obj1, Object obj2)
//package com.java2s; public class Main { public static Object nvl2(Object obj, Object obj1, Object obj2) { return obj == null ? obj2 : obj1; }//from ww w . j a v a 2 s. c o m }