Java Boolean Value From convertBoolean(Object o)

Here you can find the source of convertBoolean(Object o)

Description

convert Boolean

License

Apache License

Declaration

static public boolean convertBoolean(Object o) 

Method Source Code

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

public class Main {
    static public boolean convertBoolean(Object o) {
        if (o == null)
            return false;
        return Boolean.valueOf(o.toString());
    }/*  w ww.j  a  v a 2 s. c  o m*/
}

Related

  1. booleanValueOf(boolean b)
  2. booleanValueOf(Object obj)
  3. booleanValueWithYN(String string)
  4. convertBoolean(Boolean convertedValue, boolean defaultValue)
  5. convertBoolean(final String value)
  6. convertBoolean(String str)
  7. convertBoolean(String str, boolean defaults)
  8. convertBoolean(String value)
  9. convertBoolean(String value)