Java Boolean From toBoolean(String propertyValue)

Here you can find the source of toBoolean(String propertyValue)

Description

Converts the specified property value to a boolean.

License

Open Source License

Parameter

Parameter Description
the property string value

Return

the property value converted to boolean

Declaration

public static boolean toBoolean(String propertyValue) 

Method Source Code

//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();
    }
}

Related

  1. toBoolean(String baseString)
  2. toBoolean(String content)
  3. toBoolean(String flag)
  4. toBoolean(String input, boolean defaultValue)
  5. toBoolean(String inString)
  6. toBoolean(String s)
  7. toBoolean(String s)
  8. toBoolean(String str)
  9. toBoolean(String str)