Java Boolean From toBoolean(Object obj)

Here you can find the source of toBoolean(Object obj)

Description

to Boolean

License

Open Source License

Declaration

static Boolean toBoolean(Object obj) 

Method Source Code

//package com.java2s;

public class Main {
    static Boolean toBoolean(Object obj) {
        if (obj instanceof String)
            return Boolean.parseBoolean((String) obj);
        return (Boolean) obj;
    }/*w  w  w .j a  v  a  2  s.  c o m*/
}

Related

  1. toBoolean(Object o)
  2. toBoolean(Object obj)
  3. toBoolean(Object obj)
  4. toBoolean(Object obj)
  5. toBoolean(Object obj)
  6. toBoolean(Object obj)
  7. toBoolean(Object obj)
  8. toBoolean(Object obj)
  9. toBoolean(Object obj)