Java Object to Boolean asBoolean(Object value)

Here you can find the source of asBoolean(Object value)

Description

as Boolean

License

Apache License

Declaration

public static Boolean asBoolean(Object value) 

Method Source Code

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

public class Main {
    public static Boolean asBoolean(Object value) {
        return Boolean.valueOf(asString(value));
    }/*  w  w w .j  av a2s.com*/

    public static String asString(Object value) {
        return String.valueOf(value);
    }
}

Related

  1. asBoolean(Object obj)
  2. asBoolean(Object obj)
  3. asBoolean(Object object)
  4. asBoolean(Object value)
  5. asBoolean(Object value)
  6. castBoolean(Object inObject)
  7. castBoolean(Object o)
  8. castBoolean(Object o)
  9. castBoolean(Object o, boolean defaultValue)