Android String to Boolean Convert getBool(String str, boolean b)

Here you can find the source of getBool(String str, boolean b)

Description

get Bool

Declaration

public static boolean getBool(String str, boolean b) 

Method Source Code

//package com.java2s;

public class Main {
    public static boolean getBool(String str, boolean b) {
        return null != str && str.equalsIgnoreCase("true") ? true : false;
    }/* ww w . jav a  2  s  . c om*/
}

Related

  1. getValueOrDefault(String s, String s1)
  2. toBool(String str)
  3. toBoolean(final String value)
  4. toBool(String b)
  5. getBooleanValue(String string)
  6. isTextBoolean(String texto)
  7. parseBoolean(String string)