用于向boolean映射集合中添加映射值

@param property   属性名
@param trueValue  当此属性为true时的值
@param falseValue 当此属性为false时的值
@see #booleanMapping
760551
public void putBooleanMapping(String property, Object trueValue, Object falseValue) {
        Map<String, Object> mapping = new HashMap<>(2);
        mapping.put(TRUE, trueValue);
        mapping.put(FALSE, falseValue);
        this.getBooleanMapping().put(property, mapping);
    }
640554
public static boolean toBoolean(Object obj, boolean defaultValue) {

        if (obj == null) {
            return defaultValue;
        }

        if (obj instanceof Boolean) {
            return ((Boolean) obj).booleanValue();
        } else if (obj instanceof Number || obj.getClass().isPrimitive()) {
            int value = toInt(obj);
            return value != 0 ? true : false;
        } else if (obj instanceof Value) {
            return ((Value) obj).booleanValue();
        } else if (obj instanceof String || obj instanceof CharSequence) {
            String str = Conversions.toString(obj);
            if (str.length() == 0) {
                return false;
            }
            if (str.equals("false")) {
                return false;
            } else {
                return true;
            }
        } else if (isArray(obj)) {
            return len(obj) > 0;
        } else if (obj instanceof Collection) {

            if (len(obj) > 0) {
                List list = Lists.list((Collection) obj);
                while (list.remove(null)) {

                }
                return Lists.len(list) > 0;
            } else {
                return false;
            }
        } else {
            return toBoolean(Conversions.toString(obj));
        }
    }
927052
static boolean valueAsBoolean(Map<String, Object> map, Key key, boolean defaultValue) {
        return Boolean.parseBoolean(valueAsString(map, key, String.valueOf(defaultValue)));
    }
431690
public void setValue (String name, boolean value)
    {
        Boolean oldValue = null;
        if (_prefs.get(name, null) != null || _props.getProperty(name) != null) {
            oldValue = Boolean.valueOf(_prefs.getBoolean(name, super.getValue(name, false)));
        }

        _prefs.putBoolean(name, value);
        _propsup.firePropertyChange(name, oldValue, Boolean.valueOf(value));
    }
150865
public static boolean getRuntimeBooleanProperty(String property, String defaultValue)
   {
      if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "getRuntimeBooleanProperty", new Object[] {property, defaultValue});
                                           
      boolean runtimeProp = Boolean.valueOf(RuntimeInfo.getPropertyWithMsg(property, defaultValue)).booleanValue();
                                           
      if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(tc, "getRuntimeBooleanProperty", ""+runtimeProp);
      
      return runtimeProp;
   }
914588
public boolean deleteValue(String geoPackage, String property, String value) {
		boolean deleted = false;
		PropertiesCoreExtension<T, ?, ?, ?> properties = propertiesMap
				.get(geoPackage);
		if (properties != null) {
			deleted = properties.deleteValue(property, value) > 0;
		}
		return deleted;
	}
861875
public static PactDslJsonRootValue booleanType(Boolean example) {
    PactDslJsonRootValue value = new PactDslJsonRootValue();
    value.setValue(example);
    value.setMatcher(TypeMatcher.INSTANCE);
    return value;
  }
326264
public Boolean getAsBoolean(String property) {
		if (super.has(property)) {
			return get(property).getAsBoolean();
		}
		return null;
	}
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);
    }
701709
protected function setBoolean($property, $value) {
		try {
			$this->$property = \n2n\log4php\option\OptionConverter::toBooleanEx($value);
		} catch (\Exception $ex) {
			$value = var_export($value, true);
			$this->warn("Invalid value given for '$property' property: [$value]. Expected a boolean value. Property not changed.");
		}
	}
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);
		}
	}
135388
public static BooleanPath booleanPath(Path<?> parent, String property) {
        return new BooleanPath(PathMetadataFactory.forProperty(parent, property));
    }
1299281
public static boolean getBooleanValue(Properties prop, String name, boolean defaultValue) {
		String strProp = prop.getProperty(name, Boolean.toString(defaultValue));
		return Boolean.valueOf(strProp);
	}
430869
public boolean hasValue(String property, String value) {
		boolean hasValue = false;
		if (has()) {
			Map<String, Object> fieldValues = buildFieldValues(property, value);
			TResult result = getDao().queryForFieldValues(fieldValues);
			try {
				hasValue = result.getCount() > 0;
			} finally {
				result.close();
			}
		}
		return hasValue;
	}
468478
public ValueMap withBoolean(String key, boolean val) {
        super.put(key, Boolean.valueOf(val));
        return this;
    }
368342
@Nullable
	public static Boolean valueOrPropertyAsBoolean(@Nullable final Boolean value, @Nonnull final Property property, @Nullable final Boolean defaultValue) {
		return SimpleConversions.convertToBoolean(valueOrProperty(value, property, defaultValue));
	}
116353
final public function addPropertyIfNot(Bool $condition=null, String $property, $value=null)
	{
		if ($condition == false) {
			$this->softProperties[$property] = $value;
		}
	}