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