Equivalent to {@link #setBoolean(String, boolean)
setBoolean}{@code (key.name(), value)}.
If {@code key} is null, nothing is done.
16221
public void setBoolean(Enum<?> key, boolean value)
    {
        if (key == null)
        {
            return;
        }

        setBoolean(key.name(), value);
    }
803005
public Options putBoolean(String key, IModel<Boolean> value)
	{
		putOption(key, new BooleanOption(value));
		return this;
	}
458231
public Boolean getAsNullableBoolean(String key) {
		Object value = getAsObject(key);
		return BooleanConverter.toNullableBoolean(value);
	}
420590
@NonNull
    @Override
    public MutableDocument setBoolean(@NonNull String key, boolean value) {
        return setValue(key, value);
    }
1182701
private void writeBooleanField(String fieldName, Object value) throws IOException
   {
      boolean val = ((Boolean) value).booleanValue();
      if (val)
      {
         m_writer.writeNameValuePair(fieldName, val);
      }
   }
375464
public void setBool(Boolean value) {
		this.checkNull(value);
		list.add(value);
		type.add(Boolean.class);
	}
602408
public void setBooleanAttribute(String name, Boolean value) {
		Attribute attribute = getAttributes().get(name);
		if (!(attribute instanceof BooleanAttribute)) {
			throw new IllegalStateException("Cannot set boolean value on attribute with different type, " +
					attribute.getClass().getName() + " setting value " + value);
		}
		((BooleanAttribute) attribute).setValue(value);
	}
939210
public synchronized void setAttribute(String key, Boolean value)
	{
		if(attributes.containsKey(key))
		{
			attributes.remove(key);
		}
		attributes.put(key, value);
	}
768033
public static Boolean getBoolean(Properties p, String name, Boolean defaultValue) {
		return BooleanUtil.toBooleanObject(p.getProperty(name), defaultValue);
	}
1105966
public boolean getBoolean(Enum<?> key, boolean defaultValue)
    {
        if (key == null)
        {
            return defaultValue;
        }

        return getBoolean(key.name(), defaultValue);
    }
378833
public Optional<Boolean> getBoolean(String key) {
        Objects.requireNonNull(key, Required.KEY.toString());

        String value = this.values.get(key);
        if (StringUtils.isNotBlank(value)) {
            if (("1").equals(value)) {
                return Optional.of(Boolean.TRUE);
            } else if (("true").equals(value)) {
                return Optional.of(Boolean.TRUE);
            } else if (("false").equals(value)) {
                return Optional.of(Boolean.FALSE);
            } else if (("0").equals(value)) {
                return Optional.of(Boolean.FALSE);
            } else {
                // Ignore anything else
            }
        }

        return Optional.empty();
    }
395107
public boolean getBoolean(String key) {
    String value = getString(key);
    return StringUtils.isNotEmpty(value) && Boolean.parseBoolean(value);
  }
884157
public boolean getBoolean(String key) {
        final String value = this.props.getValue(key);
        if (StringUtils.isBlank(value)) {
            return false;
        }

        return Boolean.parseBoolean(value);
    }
365138
public void bind(BooleanProperty property, String key) {
		if (prefs.get(validateKey(key), null) != null) {
			property.set(prefs.getBoolean(key, false));
		}
		property.addListener(o -> prefs.putBoolean(key, property.getValue()));
	}
163889
protected void onBoolean(Boolean bool, String fieldName, JsonParser jp) {
		log.trace(fieldName + " " + bool);
	}
958037
public boolean set(boolean value)
    {
        String prevValue = setString(Boolean.toString(value));
        if (prevValue == null) {
            prevValue = getDefaultValue();
            if (prevValue == null) {
                return false;
            }
        }
        return toBoolean(prevValue);
    }
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);
        }
    }