Java Object NVL nvl(T... objs)

Here you can find the source of nvl(T... objs)

Description

nvl

License

Open Source License

Declaration

public static <T> T nvl(T... objs) 

Method Source Code

//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;
    }
}

Related

  1. nvl(T value, T replacement)
  2. nvl(T value, T replacement)
  3. nvl(T value, T value2)
  4. nvl(T... objs)
  5. nvl(T... objs)
  6. nvl(T... values)
  7. nvl(T... values)
  8. nvl2(Object obj, Object obj1, Object obj2)
  9. nvlArr(String[][] planarArr)