internal void clear(ServiceRegistry registry) { foreach (java.util.MapNS.Entry <java.lang.Class, Object> e in providers.entrySet()) { Object provider = e.getValue(); if (provider is RegisterableService) { ((RegisterableService)provider).onDeregistration(registry, e.getKey()); } } providers.clear(); nodeMap.clear(); }
/** {@inheritDoc} */ public override void finish() //throws IOException { if (finished) { throw new java.io.IOException("This archive has already been finished"); } if (entry != null) { throw new java.io.IOException("This archives contains unclosed entries."); } cdOffset = written; for (java.util.Iterator <ZipArchiveEntry> i = entries.iterator(); i.hasNext();) { writeCentralFileHeader((ZipArchiveEntry)i.next()); } cdLength = written - cdOffset; writeCentralDirectoryEnd(); offsets.clear(); entries.clear(); finished = true; }
//----------------------------------------------------------------------- public virtual void clear() { map.clear(); }
//----------------------------------------------------------------------- /** * Clears the bag by clearing the underlying map. */ public virtual void clear() { modCount++; map.clear(); sizeJ = 0; }
public void clear() { map.clear(); }
/** * Flushes all <code>BeanInfo</code> caches. * */ public static void flushCaches() { // Flush the cache by throwing away the cache HashMap and creating a // new empty one theCache.clear(); }
/** * Clears the bag by clearing the underlying map. */ public virtual void clear() { _mods++; _map.clear(); _total = 0; }