Java Object NVL nvl(T value, T value2)

Here you can find the source of nvl(T value, T value2)

Description

NULL VALUE

License

Apache License

Parameter

Parameter Description
T a parameter
value a parameter
value2 a parameter

Declaration

public static <T> T nvl(T value, T value2) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

public class Main {
    /**//from   w  w w  . j  a va  2  s .  co m
     * NULL VALUE
     * @param <T>
     * @param value
     * @param value2
     * @return
     */
    public static <T> T nvl(T value, T value2) {
        if (value == null) {
            return value2;
        }
        return value;
    }
}

Related

  1. nvl(T value, String defValue)
  2. nvl(T value, T defaultValue)
  3. nvl(T value, T ifnull)
  4. nvl(T value, T replacement)
  5. nvl(T value, T replacement)
  6. nvl(T... objs)
  7. nvl(T... objs)
  8. nvl(T... objs)
  9. nvl(T... values)