Here you can find the source of valueOf(Boolean value)
Parameter | Description |
---|---|
value | the boolean. |
public static String valueOf(Boolean value)
//package com.java2s; public class Main { /**//from w w w .j av a 2 s .c om * Returns the string value of the given boolean. Returns null if argument * is null. * * @param value the boolean. * @return the string value. */ public static String valueOf(Boolean value) { return value != null ? String.valueOf(value) : null; } /** * Returns the boolean value of the given string. Returns null if argument * is null. * * @param value the string value. * @return the boolean. */ public static Boolean valueOf(String value) { return value != null ? Boolean.valueOf(value) : null; } }