Java Object NVL nvl(Object source, Object alernative)

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

Description

nvl

License

Open Source License

Declaration

public static Object nvl(Object source, Object alernative) 

Method Source Code

//package com.java2s;
/**/*from   w ww.j  a v a2  s . c om*/
 * Copyright (c) 2015 SK holdings Co., Ltd. All rights reserved.
 * This software is the confidential and proprietary information of SK holdings.
 * You shall not disclose such confidential information and shall use it only in
 * accordance with the terms of the license agreement you entered into with SK holdings.
 * (http://www.eclipse.org/legal/epl-v10.html)
 */

public class Main {

    public static Object nvl(Object source, Object alernative) {
        if (source == null) {
            return alernative;
        }
        return source;
    }
}

Related

  1. nvl(Object a, Object b, Object c)
  2. nvl(Object arg0, Object arg1)
  3. nvl(Object inputObject, Object defaultObject)
  4. NVL(Object obj, String defaultVaue)
  5. nvl(Object objInput, Object objOutput)
  6. NVL(Object str)
  7. nvl(Object value, Object substituteWhenNull)
  8. nvl(Object value, String defaultValue)
  9. nvl(Object value, String valueWhenNull)