Here you can find the source of nvl(T value, T value2)
Parameter | Description |
---|---|
T | a parameter |
value | a parameter |
value2 | a parameter |
public static <T> T nvl(T value, T value2)
//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; } }