Android String Null Convert convertToNull(String chaine)

Here you can find the source of convertToNull(String chaine)

Description

convert To Null

License

Open Source License

Declaration

public static String convertToNull(String chaine) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    public static String convertToNull(String chaine) {
        if ("".equals(chaine) || " ".equals(chaine)
                || "null".equals(chaine) || "NULL".equals(chaine)
                || "Null".equals(chaine)) {
            return null;
        }//from  w ww . j av a 2  s.  com
        return chaine;
    }
}

Related

  1. toNonNull(String str)
  2. toStrNotNull(Object obj, String defaultStr)
  3. defaultIfNull(String str)
  4. defaultIfNull(String str, String defaultStr)
  5. defaultIfBlank(String str, String defaultStr)
  6. defaultIfBlank(String str)