Gets a property's value as a boolean. Returns true if the value exists, and is either `true`
or a nonzero number.

@param key the key
@return the boolean value.
545820
@Override
    public boolean getBoolean(@NonNull String key) {
        if (key == null) { throw new IllegalArgumentException("key cannot be null."); }

        synchronized (lock) {
            final Object obj = getMValue(internalDict, key).asNative(internalDict);
            return CBLConverter.asBoolean(obj);
        }
    }
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();
    }
561182
public boolean getBoolean(String key, boolean defaultValue) {
		Object o = getObject(key);
		if (o == null) {
			return defaultValue;
		}
		boolean b = defaultValue;
		try {
			b = Boolean.parseBoolean(o.toString());
		}
		catch (Exception e) {
			throw new IllegalArgumentException("Object ["+o+"] associated with key ["+key+"] is not of type Boolean.");
		}
		return b;
	}
1255509
public boolean[] getBooleanArray(final String key) {
		final String[] value = getArray(key);
		if (value != null) {
			final boolean[] result = new boolean[value.length];
			for (int i = 0; i < value.length; i++) {
				result[i] = Boolean.valueOf(value[i]).booleanValue();
			}
			return result;
		}
		return null;
	}
1164325
public function getBooleanValue($key)
    {
        $value = $this->get($key);
        if ($value === null) {
            return null;
        }
        return ($value === true or $value === 1);
    }
1319101
public boolean getProperty(String key, boolean defaultValue) {
        String value = getProperty(key, String.class);
        return StringUtils.isEmpty(value) ? defaultValue : Boolean.parseBoolean(value);
    }
96053
public final int get(String key)
  {

    for (int i = 0; i < m_firstFree; i++)
    {
      if (m_map[i].equals(key))
        return m_values[i];
    }

    return INVALID_KEY;
  }
580536
public boolean containsKey(Object key) {
        if (key instanceof Number) {
            return containsKey( ((Number)key).intValue() );
        }
        else {
            return false;
        }
    }
901010
public boolean getBoolean(final String key, final boolean def) {
		final String value = getProperty(key);
		return value != null ? Boolean.valueOf(value).booleanValue() : def;
	}
969267
public boolean getBoolean( String key )
        throws MissingResourceException
    {
        ResourceBundle bundle = getBundle();
        String value = bundle.getString( key );
        return "true".equalsIgnoreCase( value );
    }
686770
public static boolean getBoolean(Properties config, String key, boolean defaultValue) {
		String val = config.getProperty(key);
		if (val == null) {
			return defaultValue;
		} else {
			return Boolean.parseBoolean(val);
		}
	}
1322198
public static boolean getBoolean(final String key, final boolean def) {
		try {
			return systemRoot.getBoolean(fixKey(key), def);
		} catch (final Exception e) {
			// just eat the exception to avoid any system crash on system issues
			return def;
		}
	}
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;
	}
617587
public static Boolean getBool(Map<?, ?> map, Object key) {
		return get(map, key, Boolean.class);
	}
1298415
public synchronized boolean getAttribute(String key, boolean defaultValue)
	{
		if(attributes.containsKey(key))
		{
			Object obj = attributes.get(key);
			if(obj instanceof Boolean)
			{
				return (Boolean) obj;
			}
		}
		return defaultValue;
	}
1069927
public boolean getBooleanProperty(String propertyName, boolean defaultValue) {

		return Boolean.valueOf(getProperty(propertyName, Boolean.toString(defaultValue)));
	}
335898
protected function _get_boolean_value( $key ) {
		if ( ! isset( $this->types[ $key ] ) || 'boolean' !== $this->types[ $key ] ) {
			return null;
		}

		$default = array_key_exists( $key, $this->defaults ) ? $this->defaults[ $key ] : true;

		// Values are stored as yes/no strings.
		return filter_var( $this->store->get( $key, $default ), FILTER_VALIDATE_BOOLEAN );
	}