Java Object NVL nvl(S obj, U nullObject)

Here you can find the source of nvl(S obj, U nullObject)

Description

nvl

License

Open Source License

Declaration

public static <T, S extends T, U extends T> T nvl(S obj, U nullObject) 

Method Source Code

//package com.java2s;

public class Main {
    public static <T, S extends T, U extends T> T nvl(S obj, U nullObject) {
        if (obj != null) {
            return obj;
        }/*from w ww.  j av  a2s . com*/
        return nullObject;
    }
}

Related

  1. nvl(Object source, Object alernative)
  2. NVL(Object str)
  3. nvl(Object value, Object substituteWhenNull)
  4. nvl(Object value, String defaultValue)
  5. nvl(Object value, String valueWhenNull)
  6. nvl(String instr, String defaultValue)
  7. nvl(String instr, String defaultValue)
  8. nvl(String pArg1, String pArg2)
  9. nvl(String pValue)