Java Object NVL nvl(T value, String defValue)

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

Description

nvl

License

Apache License

Declaration

public static <T> String nvl(T value, String defValue) 

Method Source Code

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

public class Main {
    public static <T> String nvl(T value, String defValue) {
        return ((value != null) ? String.valueOf(value) : defValue);
    }//from   ww  w.  j  av a  2  s . com

    public static <T> String nvl(T value) {
        return nvl(value, "");
    }
}

Related

  1. nvl(T o, T valueIfNull)
  2. nvl(T object, T defaultValue)
  3. nvl(T s, T def)
  4. nvl(T t, String message)
  5. nvl(T t, String message)
  6. nvl(T value, T defaultValue)
  7. nvl(T value, T ifnull)
  8. nvl(T value, T replacement)
  9. nvl(T value, T replacement)