Here you can find the source of nvl(Object objInput, Object objOutput)
public static Object nvl(Object objInput, Object objOutput)
//package com.java2s; /*/*from w ww .j a v a 2 s. c o m*/ * Copyright (C) 2010 Viettel Telecom. All rights reserved. * VIETTEL PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. */ public class Main { public static Object nvl(Object objInput, Object objOutput) { if (objInput != null) { return objInput; } else { return objOutput; } } public static <T> T nvl(T... objs) { for (T obj : objs) { if (obj != null) { return obj; } } return null; } }