本文整理了Java中org.apache.commons.lang.BooleanUtils.isNotFalse()
方法的一些代码示例,展示了BooleanUtils.isNotFalse()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。BooleanUtils.isNotFalse()
方法的具体详情如下:
包路径:org.apache.commons.lang.BooleanUtils
类名称:BooleanUtils
方法名:isNotFalse
[英]Checks if a Boolean
value is notfalse
, handling null
by returning true
.
BooleanUtils.isNotFalse(Boolean.TRUE) = true
BooleanUtils.isNotFalse(Boolean.FALSE) = false
BooleanUtils.isNotFalse(null) = true
[中]检查Boolean
值是否不是false
,通过返回true
处理null
。
BooleanUtils.isNotFalse(Boolean.TRUE) = true
BooleanUtils.isNotFalse(Boolean.FALSE) = false
BooleanUtils.isNotFalse(null) = true
代码示例来源:origin: Evolveum/midpoint
public boolean isSynchronizationEnabled() {
if (objectSynchronization == null) {
return false;
}
return BooleanUtils.isNotFalse(objectSynchronization.isEnabled());
}
代码示例来源:origin: Evolveum/midpoint
public boolean isTolerant() {
return BooleanUtils.isNotFalse(resourceObjectAssociationType.isTolerant());
}
代码示例来源:origin: Cognifide/APM
@Override
public boolean isExecutionEnabled() {
return BooleanUtils.isNotFalse(scriptContent.getExecutionEnabled());
}
代码示例来源:origin: com.cognifide.cq/cqsm-bundle
@Override
public boolean isExecutionEnabled() {
return BooleanUtils.isNotFalse(scriptContent.getExecutionEnabled());
}
代码示例来源:origin: pmayweg/sonar-groovy
private static boolean loadSourceFiles(ISessionInfoVisitor infoStore, IExecutionDataVisitor dataStore, File... reports) {
Boolean isCurrentVersionFormat = null;
for (File report : reports) {
if (report.isFile()) {
JaCoCoReportReader jacocoReportReader = new JaCoCoReportReader(report).readJacocoReport(dataStore, infoStore);
boolean reportFormatIsCurrent = jacocoReportReader.useCurrentBinaryFormat();
if (isCurrentVersionFormat == null) {
isCurrentVersionFormat = reportFormatIsCurrent;
} else if (!isCurrentVersionFormat.equals(reportFormatIsCurrent)) {
throw new IllegalStateException("You are trying to merge two different JaCoCo binary formats. Please use only one version of JaCoCo.");
}
}
}
return BooleanUtils.isNotFalse(isCurrentVersionFormat);
}
代码示例来源:origin: Evolveum/midpoint
private boolean evaluateScriptCondition(OperationProvisioningScriptType script,
ExpressionVariables variables, Task task, OperationResult result) throws SchemaException, ExpressionEvaluationException, ObjectNotFoundException, CommunicationException, ConfigurationException, SecurityViolationException {
ExpressionType condition = script.getCondition();
if (condition == null) {
return true;
}
PrismPropertyValue<Boolean> conditionOutput = ExpressionUtil.evaluateCondition(variables, condition, expressionFactory, " condition for provisioning script ", task, result);
if (conditionOutput == null) {
return true;
}
Boolean conditionOutputValue = conditionOutput.getValue();
return BooleanUtils.isNotFalse(conditionOutputValue);
}
代码示例来源:origin: Evolveum/midpoint
private void executeNotificationAction(WorkItemType workItem, @NotNull WorkItemNotificationActionType notificationAction, Task wfTask,
OperationResult result) throws SchemaException {
WorkItemEventCauseInformationType cause = WfContextUtil.createCause(notificationAction);
if (BooleanUtils.isNotFalse(notificationAction.isPerAssignee())) {
List<ObjectReferenceType> assigneesAndDeputies = wfTaskController.getAssigneesAndDeputies(workItem, wfTask, result);
for (ObjectReferenceType assigneeOrDeputy : assigneesAndDeputies) {
wfTaskController.notifyWorkItemCustom(assigneeOrDeputy, workItem, cause, wfTask, notificationAction, result);
}
} else {
wfTaskController.notifyWorkItemCustom(null, workItem, cause, wfTask, notificationAction, result);
}
}
代码示例来源:origin: Evolveum/midpoint
@BeforeClass
@Parameters({ "enablePolicyRuleBasedAspect" })
public void temp(@org.testng.annotations.Optional Boolean enablePolicyRuleBasedAspect) {
this.enablePolicyRuleBasedAspect = BooleanUtils.isNotFalse(enablePolicyRuleBasedAspect);
System.out.println("Testing with policy rule based aspect = " + this.enablePolicyRuleBasedAspect);
}
代码示例来源:origin: Evolveum/midpoint
ObjectClass icfObjectClass = connIdNameMapper.objectClassToConnId(shadow, getSchemaNamespace(), connectorType, BooleanUtils.isNotFalse(legacySchema));
内容来源于网络,如有侵权,请联系作者删除!