Here you can find the source of nvl(T object, T defaultValue)
Parameter | Description |
---|---|
object | a parameter |
defaultValue | a parameter |
public static <T> T nvl(T object, T defaultValue)
//package com.java2s; //License from project: Apache License public class Main { /**/* w w w . j a va 2 s .co m*/ * plsql has one or two useful functions and this is one of them. * @param object * @param defaultValue * @return */ public static <T> T nvl(T object, T defaultValue) { return object != null ? object : defaultValue; } }