Java Boolean From toBoolean(Object s)

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

Description

to Boolean

License

Open Source License

Declaration

public static Boolean toBoolean(Object s) 

Method Source Code

//package com.java2s;

public class Main {
    public static Boolean toBoolean(Object s) {
        if (s == null) {
            return (null);
        }/* ww w.  ja v  a  2 s. c  o m*/
        return (new Boolean(s.toString()));
    }
}

Related

  1. toBoolean(Object object)
  2. toBoolean(Object object)
  3. toBoolean(Object object)
  4. toBoolean(Object object, Boolean defaultValue)
  5. toBoolean(Object property, boolean defaultValue)
  6. toBoolean(Object v)
  7. toBoolean(Object val)
  8. toBoolean(Object val, boolean defValue)
  9. toBoolean(Object value)