Java Null Value Convert convertNullToFalse(Boolean b)

Here you can find the source of convertNullToFalse(Boolean b)

Description

convert Null To False

License

Apache License

Declaration

public static Boolean convertNullToFalse(Boolean b) 

Method Source Code

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

public class Main {
    public static Boolean convertNullToFalse(Boolean b) {
        if (b == null) {
            return Boolean.FALSE;
        }//w  ww  .  ja v a2 s.com
        return b;
    }
}

Related

  1. convertNullToBlank(String s)
  2. convertNullToEmptyStr(String inObj)
  3. convertNullToEmptyString(Object raw)
  4. convertNullToEmptyString(String s)
  5. convertNullToEmptyString(String value)
  6. convertNullToInteger(Object orgStr, int convertStr)
  7. convertNullToLong(Object orgStr, Long convertStr)
  8. convertNullToOne(final Object value)
  9. convertNullToSolrValue(String fieldName)