/** * 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; }
if (visited.booleanValue() && !found.booleanValue()) { throw new SemanticException(ErrorMsg.HIVE_GROUPING_FUNCTION_EXPR_NOT_IN_GROUPBY.getMsg());
if(didPrune.booleanValue()) { List<Versioned<byte[]>> resolvedVals = VectorClockUtils.resolveVersions(prunedVals);
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",
routingTable.setBrokerMetrics(new BrokerMetrics(new MetricsRegistry())); Assert.assertFalse(timeBoundaryUpdated.booleanValue()); new ArrayList<InstanceConfig>()); Assert.assertTrue(timeBoundaryUpdated.booleanValue());
keyReplicas, didPrune); assertEquals("Must have pruned some versions", true, didPrune.booleanValue()); assertEquals("Not pruned properly", TestUtils.getClock(0, 1, 2), prunedVals.get(0) .getVersion());
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());
@Override public boolean accept(long candidateLedgerId) { return ((candidateLedgerId == ledgerId) && ((!entryFound.booleanValue()) || (entryId == -1))); }
@Override public boolean accept(long ledgerId) { return !stopScanning.booleanValue(); }
/** * 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; }
/** * 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; }
/** * 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; }
assertTrue(wasRemoved.booleanValue());
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); } }
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); } }
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(); }
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; }
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; } }
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; }
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; }