Returns the boolean value stored in this object for the given key.
Returns false if there is no such key.

@param key the name of the field on this object
@return the requested boolean value or false if there was no such key
974507
public boolean optBoolean(String key){
		LazyNode token=getOptionalFieldToken(key);
		if(token==null)return false;
		if(token.type==LazyNode.VALUE_STRING || token.type==LazyNode.VALUE_ESTRING){
			String str=token.getStringValue().toLowerCase().trim();
			if(str.equals("true"))return true;
			if(str.equals("false"))return false;
			throw new LazyException("Requested value is not a boolean",token);
		}
		// if(token.type==LazyNode.VALUE_NULL)return false;
		if(token.type==LazyNode.VALUE_TRUE)return true;
		// if(token.type==LazyNode.VALUE_FALSE)return false;
		return false;
	}
1003603
@Override
    public final boolean getBool(final String key) {
        Boolean result = optBool(key);
        if (result == null) {
            throw new ObjectMissingException(this, key);
        }
        return result;
    }
161712
public boolean getBooleanProperty( String key , boolean defaultValue )
    {
        String value = SystemTools.replaceSystemProperties(settings.getProperty(key));
        if (value == null)
            return defaultValue;
        return Boolean.valueOf(value.trim()).booleanValue();
    }
50553
public boolean getBoolean(String key, boolean defaultValue) {
		addToDefaults(key, Boolean.toString(defaultValue));
		String value = get(key);
		if (value == null) {
			return defaultValue;
		} else {
			return Boolean.valueOf(value);
		}
	}
284309
public boolean getBoolean(String key) {
    if (containsKey(key)) {
      return "true".equalsIgnoreCase(get(key));
    } else {
      throw new IllegalArgumentException("Missing key " + key + ".");
    }
  }
44662
public Boolean getAsBoolean(String key) {
        Object value = mValues.get(key);
        try {
            return (Boolean) value;
        } catch (ClassCastException e) {
            if (value instanceof CharSequence) {
                return Boolean.valueOf(value.toString());
            } else if (value instanceof Number) {
                return ((Number) value).intValue() != 0;
            } else {
                DLog.e(TAG, "Cannot cast value for " + key + " to a Boolean: " + value, e);
                return null;
            }
        }
    }
1236832
public boolean isFalse(Object key) {
		Object value = get(key);
		return (value instanceof Boolean && ((Boolean)value == false));
	}
137782
public boolean[] getBooleanArray(final String key, final boolean[] def) {
		final boolean[] result = getBooleanArray(key);
		return result == null ? def : result;
	}
239798
final protected function getBooleanValue(string $key, bool $default = false): bool
    {
        $value = $this->getConfigValue($key);
        if (!$value) {
            return $default;
        }

        return \boolval($value);
    }
458231
public Boolean getAsNullableBoolean(String key) {
		Object value = getAsObject(key);
		return BooleanConverter.toNullableBoolean(value);
	}
444099
public boolean getBoolean(String key, boolean defaultValue) {
    Object value = get(key);
    if (value instanceof Boolean) {
      return (boolean) value;
    } else if (value instanceof String) {
      return Boolean.valueOf((String) value);
    }
    return defaultValue;
  }
365050
public boolean optBoolean( String key, boolean defaultValue ) {
      verifyIsNull();
      try{
         return getBoolean( key );
      }catch( Exception e ){
         return defaultValue;
      }
   }
364424
public boolean isTrue(Object key) {
		Object value = get(key);
		return (value instanceof Boolean && ((Boolean)value == true));
	}
617587
public static Boolean getBool(Map<?, ?> map, Object key) {
		return get(map, key, Boolean.class);
	}
1315351
public synchronized boolean containsKey(Object key) {
		if(size == 0) {
			return false;
		} else {
			try {
				XAttributeMap map = deserialize();
				return map.containsKey(key);
			} catch (IOException e) {
				e.printStackTrace();
				return false;
			}
		}
	}
1123502
def get_as_nullable_boolean(self, key):
        
        value = self.get(key)
        return BooleanConverter.to_nullable_boolean(value)
1346171
public boolean getBoolean(String key, boolean defaultResponse) {
        Boolean b = (Boolean) get(key);
        if (b != null) {
            return b.booleanValue();
        }
        return defaultResponse;
    }