Java Object NVL NVL(Long l)

Here you can find the source of NVL(Long l)

Description

NVL

License

Open Source License

Declaration

public static long NVL(Long l) 

Method Source Code

//package com.java2s;

public class Main {

    public static long NVL(Long l) {
        if (l == null) {
            return 0L;
        }//from   w  w  w.jav  a2 s . co m

        return l.longValue();
    }

    public static int NVL(Integer i) {
        if (i == null) {
            return 0;
        }

        return i.intValue();
    }
}

Related

  1. nvl(Boolean b, boolean defaultValue)
  2. nvl(CharSequence source)
  3. nvl(E expr1, E expr2)
  4. nvl(final T t, final T def)
  5. nvl(Integer value, Number valueWhenNull)
  6. nvl(Object a, Object b, Object c)
  7. nvl(Object arg0, Object arg1)
  8. nvl(Object inputObject, Object defaultObject)
  9. NVL(Object obj, String defaultVaue)