Java Object NVL nvl(Object arg0, Object arg1)

Here you can find the source of nvl(Object arg0, Object arg1)

Description

nvl

License

Open Source License

Declaration

public static Object nvl(Object arg0, Object arg1) 

Method Source Code

//package com.java2s;
/*******************************************************************************
 * Copyright (c) 2004, 2006//from  ww w .  j a va 2  s.c o m
 * Thomas Hallgren, Kenneth Olwing, Mitch Sonies
 * Pontus Rydin, Nils Unden, Peer Torngren
 * The code, documentation and other materials contained herein have been
 * licensed under the Eclipse Public License - v 1.0 by the individual
 * copyright holders listed above, as Initial Contributors under such license.
 * The text of such license is available at www.eclipse.org.
 *******************************************************************************/

public class Main {
    public static Object nvl(Object arg0, Object arg1) {
        return arg0 != null ? arg0 : arg1;
    }
}

Related

  1. nvl(E expr1, E expr2)
  2. nvl(final T t, final T def)
  3. nvl(Integer value, Number valueWhenNull)
  4. NVL(Long l)
  5. nvl(Object a, Object b, Object c)
  6. nvl(Object inputObject, Object defaultObject)
  7. NVL(Object obj, String defaultVaue)
  8. nvl(Object objInput, Object objOutput)
  9. nvl(Object source, Object alernative)