Java Boolean From toBoolean(String value, boolean _default)

Here you can find the source of toBoolean(String value, boolean _default)

Description

to Boolean

License

Apache License

Declaration

public static boolean toBoolean(String value, boolean _default) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

public class Main {
    public static boolean toBoolean(String value, boolean _default) {
        if (value == null || value.length() == 0)
            return _default;
        return Boolean.valueOf(value);
    }//from   ww  w  . jav  a  2 s.  c  o  m
}

Related

  1. toBoolean(String value)
  2. toBoolean(String value)
  3. toBoolean(String value)
  4. toBoolean(String value)
  5. toBoolean(String value)
  6. toBoolean(String value, boolean dEfault)
  7. toBoolean(String value, boolean defaultValue)
  8. toBoolean(String value, boolean defaultValue)
  9. toBoolean(String value, boolean defaultValue)