public void close() { channelPool.values().forEach(Channel::close); channelPool.clear(); } }
@Override public void clear() { stacks.clear(); }
@Override public void clear() { stacks.clear(); }
private void reset() { m_suites.clear(); m_tests.clear(); m_classes.clear(); m_methods.clear(); m_tree.removeAll(); }
/** * Add metadata from map, any existing is lost * * @param m the map of metadata to set */ public void setMetaData(Map<String, ? extends Object> m) { metadata.clear(); addMetaData(m); }
private void cleanup() { classIRIs.clear(); objectPropertyIRIs.clear(); dataPropertyIRIs.clear(); dataRangeIRIs.clear(); restrictionIRIs.clear(); listFirstLiteralTripleMap.clear(); listFirstResourceTripleMap.clear(); listRestTripleMap.clear(); // XXX clean new members translatorAccessor.cleanup(); resTriplesBySubject.clear(); litTriplesBySubject.clear(); singleValuedLitTriplesByPredicate.clear(); singleValuedResTriplesByPredicate.clear(); guessedDeclarations.clear(); }
private void cleanup() { classIRIs.clear(); objectPropertyIRIs.clear(); dataPropertyIRIs.clear(); dataRangeIRIs.clear(); restrictionIRIs.clear(); listFirstLiteralTripleMap.clear(); listFirstResourceTripleMap.clear(); listRestTripleMap.clear(); // XXX clean new members translatorAccessor.cleanup(); resTriplesBySubject.clear(); litTriplesBySubject.clear(); singleValuedLitTriplesByPredicate.clear(); singleValuedResTriplesByPredicate.clear(); guessedDeclarations.clear(); }
private void cleanup() { classIRIs.clear(); objectPropertyIRIs.clear(); dataPropertyIRIs.clear(); dataRangeIRIs.clear(); restrictionIRIs.clear(); listFirstLiteralTripleMap.clear(); listFirstResourceTripleMap.clear(); listRestTripleMap.clear(); // XXX clean new members translatorAccessor.cleanup(); resTriplesBySubject.clear(); litTriplesBySubject.clear(); singleValuedLitTriplesByPredicate.clear(); singleValuedResTriplesByPredicate.clear(); guessedDeclarations.clear(); }
private void cleanup() { classIRIs.clear(); objectPropertyIRIs.clear(); dataPropertyIRIs.clear(); dataRangeIRIs.clear(); restrictionIRIs.clear(); listFirstLiteralTripleMap.clear(); listFirstResourceTripleMap.clear(); listRestTripleMap.clear(); // XXX clean new members translatorAccessor.cleanup(); resTriplesBySubject.clear(); litTriplesBySubject.clear(); singleValuedLitTriplesByPredicate.clear(); singleValuedResTriplesByPredicate.clear(); guessedDeclarations.clear(); }
/** * Disables all enabled hooks. * Only used to disable MyPet. */ public void disableHooks() { for (PluginHook hook : hooks.values()) { hook.onDisable(); } hooks.clear(); hookByName.clear(); hookByClass.clear(); }
protected void destroy0() throws Exception { if(!exported) { return; } ConfigHandler configHandler = ExtensionLoader.getExtensionLoader(ConfigHandler.class).getExtension(Constants.DEFAULT_VALUE); configHandler.unexport(exporters, registeredUrls); exporters.clear(); registeredUrls.clear(); }
public static void initFoodRegistry() { recipeList.clear(); foodItems.clear();
@Override public void deserializeNBT(NBTTagCompound nbt) { // NOTE: Don't store nbt argument to serializedNBT. This one must be generated only by serializeNBT() if (nbt.hasKey("module")) this.module = ModuleInstance.deserialize(nbt.getString("module")); if (nbt.hasKey("extra")) informationTag = sortInformationTag(nbt.getCompoundTag("extra")); if (nbt.hasKey("primary_color")) primaryColor = Color.decode(nbt.getString("primary_color")); if (nbt.hasKey("secondary_color")) secondaryColor = Color.decode(nbt.getString("secondary_color")); if (nbt.hasKey("modifiers")) { compileTimeModifiers.clear(); for (NBTBase base : nbt.getTagList("modifiers", Constants.NBT.TAG_COMPOUND)) { if (base instanceof NBTTagCompound) { NBTTagCompound modifierCompound = (NBTTagCompound) base; if (modifierCompound.hasKey("operation") && modifierCompound.hasKey("attribute") && modifierCompound.hasKey("modifier")) { Operation operation = Operation.values()[modifierCompound.getInteger("operation") % Operation.values().length]; Attribute attribute = AttributeRegistry.getAttributeFromName(modifierCompound.getString("attribute")); long modifierFixed = FixedPointUtils.getFixedFromNBT(modifierCompound, "modifier"); compileTimeModifiers.put(operation, new AttributeModifierSpellRing(attribute, modifierFixed, operation)); } } } } if (nbt.hasKey("child_ring")) { SpellRing childRing = deserializeRing(nbt.getCompoundTag("child_ring")); childRing.setParentRing(this); setChildRing(childRing); } }