Java String to Boolean convertStringToBoolean(String pValue)

Here you can find the source of convertStringToBoolean(String pValue)

Description

convert String To Boolean

License

Open Source License

Parameter

Parameter Description
pValue a parameter

Declaration

public static boolean convertStringToBoolean(String pValue) 

Method Source Code

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

public class Main {
    /**/*from  w  w  w  . j  a v  a2s  . co  m*/
     * @param pValue
     * @return
     */
    public static boolean convertStringToBoolean(String pValue) {
        boolean returnValue = false;
        if ("T".equals(pValue)) {
            returnValue = true;
        }
        return returnValue;

    }
}

Related

  1. asBoolean(String value, boolean defaultValue)
  2. atob(final String str, final boolean def)
  3. atob(String pString_)
  4. atob(String s)
  5. atob(String s)
  6. convertStringToBoolean(String strBoolean)
  7. convertStringToBoolean(String string)
  8. convertStringToBoolean(String string)
  9. stringToBoolean(String expr)