Java Boolean From toBoolean(Object v)

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

Description

to Boolean

License

Apache License

Declaration

private static Boolean toBoolean(Object v) 

Method Source Code

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

public class Main {
    private static Boolean toBoolean(Object v) {
        if (null == v)
            return null;
        if (v instanceof Boolean)
            return (Boolean) v;
        return Boolean.parseBoolean(v.toString());
    }//from   www.j a v  a2s . c  o m
}

Related

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