本文整理了Java中org.apache.commons.lang.mutable.MutableBoolean.booleanValue()
方法的一些代码示例,展示了MutableBoolean.booleanValue()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。MutableBoolean.booleanValue()
方法的具体详情如下:
包路径:org.apache.commons.lang.mutable.MutableBoolean
类名称:MutableBoolean
方法名:booleanValue
[英]Returns the value of this MutableBoolean as a boolean.
[中]将此可变布尔值作为布尔值返回。
代码示例来源:origin: commons-lang/commons-lang
/**
* Compares this object to the specified object. The result is <code>true</code> if and only if the argument is
* not <code>null</code> and is an <code>MutableBoolean</code> object that contains the same
* <code>boolean</code> value as this object.
*
* @param obj the object to compare with, null returns false
* @return <code>true</code> if the objects are the same; <code>false</code> otherwise.
*/
public boolean equals(Object obj) {
if (obj instanceof MutableBoolean) {
return value == ((MutableBoolean) obj).booleanValue();
}
return false;
}
代码示例来源:origin: apache/drill
if (visited.booleanValue() && !found.booleanValue()) {
throw new SemanticException(ErrorMsg.HIVE_GROUPING_FUNCTION_EXPR_NOT_IN_GROUPBY.getMsg());
代码示例来源:origin: voldemort/voldemort
if(didPrune.booleanValue()) {
List<Versioned<byte[]>> resolvedVals = VectorClockUtils.resolveVersions(prunedVals);
代码示例来源:origin: voldemort/voldemort
assertEquals("Must have pruned something", true, didPrune.booleanValue());
assertEquals("Must have one winning version", 1, vals.size());
assertEquals("Must resolve to onlineClock", onlineClock, vals.get(0).getVersion());
assertEquals("Must have pruned something", true, didPrune.booleanValue());
assertEquals("Must have one winning version", 1, vals.size());
assertEquals("Must resolve to [0:ts] clock",
代码示例来源:origin: apache/incubator-pinot
routingTable.setBrokerMetrics(new BrokerMetrics(new MetricsRegistry()));
Assert.assertFalse(timeBoundaryUpdated.booleanValue());
new ArrayList<InstanceConfig>());
Assert.assertTrue(timeBoundaryUpdated.booleanValue());
代码示例来源:origin: voldemort/voldemort
keyReplicas,
didPrune);
assertEquals("Must have pruned some versions", true, didPrune.booleanValue());
assertEquals("Not pruned properly", TestUtils.getClock(0, 1, 2), prunedVals.get(0)
.getVersion());
代码示例来源:origin: voldemort/voldemort
assertEquals("Must have pruned something", true, didPrune.booleanValue());
assertEquals("Must have two winning versions", 2, vals.size());
assertEquals("Must have onlineClock1", onlineClock1, vals.get(0).getVersion());
assertEquals("Must have pruned something", true, didPrune.booleanValue());
代码示例来源:origin: org.apache.bookkeeper/bookkeeper-server
@Override
public boolean accept(long candidateLedgerId) {
return ((candidateLedgerId == ledgerId) && ((!entryFound.booleanValue()) || (entryId == -1)));
}
代码示例来源:origin: org.apache.bookkeeper/bookkeeper-server
@Override
public boolean accept(long ledgerId) {
return !stopScanning.booleanValue();
}
代码示例来源:origin: org.apache.directory.api/api-ldap-client-all
/**
* Compares this object to the specified object. The result is <code>true</code> if and only if the argument is
* not <code>null</code> and is an <code>MutableBoolean</code> object that contains the same
* <code>boolean</code> value as this object.
*
* @param obj the object to compare with, null returns false
* @return <code>true</code> if the objects are the same; <code>false</code> otherwise.
*/
public boolean equals(Object obj) {
if (obj instanceof MutableBoolean) {
return value == ((MutableBoolean) obj).booleanValue();
}
return false;
}
代码示例来源:origin: com.alibaba.citrus.tool/antx-autoexpand
/**
* Compares this object to the specified object. The result is <code>true</code> if and only if the argument is
* not <code>null</code> and is an <code>MutableBoolean</code> object that contains the same
* <code>boolean</code> value as this object.
*
* @param obj the object to compare with, null returns false
* @return <code>true</code> if the objects are the same; <code>false</code> otherwise.
*/
public boolean equals(Object obj) {
if (obj instanceof MutableBoolean) {
return value == ((MutableBoolean) obj).booleanValue();
}
return false;
}
代码示例来源:origin: com.ning.billing/killbill-osgi-bundles-analytics
/**
* Compares this object to the specified object. The result is <code>true</code> if and only if the argument is
* not <code>null</code> and is an <code>MutableBoolean</code> object that contains the same
* <code>boolean</code> value as this object.
*
* @param obj the object to compare with, null returns false
* @return <code>true</code> if the objects are the same; <code>false</code> otherwise.
*/
public boolean equals(Object obj) {
if (obj instanceof MutableBoolean) {
return value == ((MutableBoolean) obj).booleanValue();
}
return false;
}
代码示例来源:origin: hector-client/hector
assertTrue(wasRemoved.booleanValue());
代码示例来源:origin: org.gatein.shindig/shindig-gadgets
public void apply(ModulePrefs moduleprefs) {
if (!coreIncluded) {
// No library was explicitly included from core - add it as an implicit dependency.
features.put(Feature.CORE_FEATURE.getName(), Feature.CORE_FEATURE);
}
if (oauthMarker.booleanValue()) {
// <OAuth> tag found: security token needed.
features.put(Feature.SECURITY_TOKEN_FEATURE.getName(), Feature.SECURITY_TOKEN_FEATURE);
}
moduleprefs.features = ImmutableMap.copyOf(features);
}
}
代码示例来源:origin: com.lmco.shindig/shindig-gadgets
public void apply(ModulePrefs moduleprefs) {
if (!coreIncluded) {
// No library was explicitly included from core - add it as an implicit dependency.
features.put(Feature.CORE_FEATURE.getName(), Feature.CORE_FEATURE);
}
if (oauthMarker.booleanValue()) {
// <OAuth> tag found: security token needed.
features.put(Feature.SECURITY_TOKEN_FEATURE.getName(), Feature.SECURITY_TOKEN_FEATURE);
}
moduleprefs.features = ImmutableMap.copyOf(features);
}
}
代码示例来源:origin: Evolveum/midpoint
public static boolean hasAllDefinitions(ObjectFilter filter) {
final MutableBoolean hasAllDefinitions = new MutableBoolean(true);
Visitor visitor = f -> {
if (f instanceof ValueFilter) {
ItemDefinition definition = ((ValueFilter<?,?>) f).getDefinition();
if (definition == null) {
hasAllDefinitions.setValue(false);
}
}
};
filter.accept(visitor);
return hasAllDefinitions.booleanValue();
}
代码示例来源:origin: org.sonarsource.sonarqube/sonar-batch
public ActiveRules provide(ActiveRulesLoader loader, ModuleQProfiles qProfiles) {
if (singleton == null) {
Profiler profiler = Profiler.create(LOG).startInfo(LOG_MSG);
MutableBoolean fromCache = new MutableBoolean();
singleton = load(loader, qProfiles, fromCache);
profiler.stopInfo(fromCache.booleanValue());
}
return singleton;
}
代码示例来源:origin: org.sonarsource.sonarqube/sonar-batch
public GlobalRepositories provide(GlobalRepositoriesLoader loader) {
if (globalReferentials == null) {
Profiler profiler = Profiler.create(LOG).startInfo(LOG_MSG);
MutableBoolean fromCache = new MutableBoolean();
globalReferentials = loader.load(fromCache);
profiler.stopInfo(fromCache.booleanValue());
}
return globalReferentials;
}
}
代码示例来源:origin: org.sonarsource.sonarqube/sonar-batch
public ProjectRepositories provide(ProjectRepositoriesLoader loader, ProjectKey projectKey, DefaultAnalysisMode mode) {
if (project == null) {
MutableBoolean fromCache = new MutableBoolean(false);
Profiler profiler = Profiler.create(LOG).startInfo(LOG_MSG);
if (mode.isNotAssociated()) {
project = createNonAssociatedProjectRepositories();
profiler.stopInfo();
} else {
project = loader.load(projectKey.get(), mode.isIssues(), fromCache);
checkProject(mode);
profiler.stopInfo(fromCache.booleanValue());
}
}
return project;
}
代码示例来源:origin: org.sonarsource.sonarqube/sonar-batch
public ModuleQProfiles provide(ProjectKey projectKey, QualityProfileLoader loader, ProjectRepositories projectRepositories, AnalysisProperties props, DefaultAnalysisMode mode) {
if (this.profiles == null) {
List<QualityProfile> profileList;
MutableBoolean fromCache = new MutableBoolean();
Profiler profiler = Profiler.create(LOG).startInfo(LOG_MSG);
if (mode.isNotAssociated() || !projectRepositories.exists()) {
profileList = loader.loadDefault(getSonarProfile(props, mode), fromCache);
} else {
profileList = loader.load(projectKey.get(), getSonarProfile(props, mode), fromCache);
}
profiler.stopInfo(fromCache.booleanValue());
profiles = new ModuleQProfiles(profileList);
}
return profiles;
}
内容来源于网络,如有侵权,请联系作者删除!