Java Boolean to String convertBooleanToString(Integer booleanValue)

Here you can find the source of convertBooleanToString(Integer booleanValue)

Description

convert Boolean To String

License

Open Source License

Declaration

public static String convertBooleanToString(Integer booleanValue) 

Method Source Code

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

public class Main {
    public static String convertBooleanToString(Integer booleanValue) {
        if (booleanValue != null)
            return (booleanValue == 1) ? "true" : "false";
        return null;
    }/*from ww w.  j  a v  a2  s . c  o  m*/
}

Related

  1. boolToStr(Boolean value)
  2. boolToString(boolean x)
  3. boolToString(final boolean b)
  4. BoolToStringEx(Boolean bValue)
  5. convertBooleanToString(boolean flag)