Java Object to Boolean objectToBoolean(Object Obj)

Here you can find the source of objectToBoolean(Object Obj)

Description

object To Boolean

License

Open Source License

Declaration

public static boolean objectToBoolean(Object Obj) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    public static boolean objectToBoolean(Object Obj) {
        String CadBooleana = objectToString(Obj);
        Boolean booleano = new Boolean(CadBooleana);
        return booleano;
    }/*from w  w  w .  j a v  a2  s.  c o m*/

    public static String objectToString(Object Obj) {
        String Str = "";
        if (Obj != null) {
            Str = Obj.toString();
        }
        return Str;
    }
}

Related

  1. castToBoolean(Object value)
  2. castToBoolean(Object value)
  3. castToBoolean(String fieldValue)
  4. objectToBoolean(Object o)
  5. objectToBoolean(Object o)
  6. objectToBoolean(Object p1)
  7. toBoolean(Object object)
  8. toBoolean(Object propValue, boolean defaultValue)
  9. toBoolean(Object propValue, boolean defaultValue)