Here you can find the source of toBoolean(String propertyValue)
Parameter | Description |
---|---|
the | property string value |
public static boolean toBoolean(String propertyValue)
//package com.java2s; public class Main { /**/*from w w w . j a va 2 s. c o m*/ * Converts the specified property value to a boolean. * Returns false if the property value is null. * * @param the property string value * @return the property value converted to boolean */ public static boolean toBoolean(String propertyValue) { return (propertyValue == null) ? false : Boolean.valueOf(propertyValue).booleanValue(); } }