long otherEndpoint = nodeRefs.get(nodeRefs.size() - 1); waysByEndpoint.remove(firstEndpoint, way); waysByEndpoint.remove(otherEndpoint, way); waysByEndpoint.remove(firstEndpoint, firstWay); waysByEndpoint.remove(otherEndpoint, firstWay); waysByEndpoint.remove(firstEndpoint, firstWay); waysByEndpoint.remove(otherEndpoint, firstWay);
/** * Disables one specific enabled hook. * * @param hook the hook to be disabled */ public void disableHook(PluginHook hook) { hook.onDisable(); for (Object o : ClassUtils.getAllInterfaces(hook.getClass())) { if (o != PluginHook.class && PluginHook.class.isAssignableFrom((Class) o)) { hooks.remove(o, hook); } } hooks.removeAll(hook.getClass()); hookByName.remove(hook.getPluginName()); hookByClass.remove(hook.getClass()); }
private synchronized void removeStemNode(StemTransition stemTransition) { final String surfaceForm = stemTransition.surface; if (multiStems.containsKey(surfaceForm)) { multiStems.remove(surfaceForm, stemTransition); } else if (singleStems.containsKey(surfaceForm) && singleStems.get(surfaceForm).item.equals(stemTransition.item)) { singleStems.remove(surfaceForm); } if (!differentStemItems.containsEntry(stemTransition.item, stemTransition)) { differentStemItems.remove(stemTransition.item, stemTransition); } }
private void updateGuesses(IRI iri, Class<?> class1, boolean explicitlyTyped) { if (explicitlyTyped && guessedDeclarations.containsKey(iri)) { // if an explicitly typed declaration has been added and there was a // guess for its type, replace it // Do not replace all guesses, as these might be due to punning guessedDeclarations.remove(iri, class1); } if (!explicitlyTyped) { guessedDeclarations.put(iri, class1); } }
private void updateGuesses(IRI iri, Class<?> class1, boolean explicitlyTyped) { if (explicitlyTyped && guessedDeclarations.containsKey(iri)) { // if an explicitly typed declaration has been added and there was a // guess for its type, replace it // Do not replace all guesses, as these might be due to punning guessedDeclarations.remove(iri, class1); } if (!explicitlyTyped) { guessedDeclarations.put(iri, class1); } }
private void updateGuesses(IRI iri, Class<?> class1, boolean explicitlyTyped) { if (explicitlyTyped && guessedDeclarations.containsKey(iri)) { // if an explicitly typed declaration has been added and there was a // guess for its type, replace it // Do not replace all guesses, as these might be due to punning guessedDeclarations.remove(iri, class1); } if (!explicitlyTyped) { guessedDeclarations.put(iri, class1); } }
private void updateGuesses(IRI iri, Class<?> class1, boolean explicitlyTyped) { if (explicitlyTyped && guessedDeclarations.containsKey(iri)) { // if an explicitly typed declaration has been added and there was a // guess for its type, replace it // Do not replace all guesses, as these might be due to punning guessedDeclarations.remove(iri, class1); } if (!explicitlyTyped) { guessedDeclarations.put(iri, class1); } }
private PatternMatcher addSimplePatternRule(final IExpr leftHandSide, final PatternMatcher pmEvaluator) { final Integer hash = Integer.valueOf(((IAST) leftHandSide).patternHashCode()); if (fSimplePatternRules.containsEntry(hash, pmEvaluator)) { fSimplePatternRules.remove(hash, pmEvaluator); } fSimplePatternRules.put(hash, pmEvaluator); return pmEvaluator; }
@Override public boolean remove(@Nonnull FluidStack stack, int size) { for (FluidStack otherStack : stacks.get(stack.getFluid())) { if (stack.isFluidEqual(otherStack)) { otherStack.amount -= size; boolean success = otherStack.amount >= 0; if (otherStack.amount <= 0) { stacks.remove(otherStack.getFluid(), otherStack); } return success; } } return false; }
@Override public boolean remove(@Nonnull ItemStack stack, int size) { for (ItemStack otherStack : stacks.get(stack.getItem())) { if (API.instance().getComparer().isEqualNoQuantity(otherStack, stack)) { boolean success = otherStack.getCount() - size >= 0; if (otherStack.getCount() - size <= 0) { stacks.remove(otherStack.getItem(), otherStack); } else { otherStack.shrink(size); } return success; } } return false; }
activeVisibilities.remove(propIdent, columnVisibility); softDeleteObserved.put(propIdent, column.getKey());
activeVisibilities.remove(propIdent, columnVisibility); softDeleteObserved.put(propIdent, column.getKey());