public void clear() { innerCache.clear(); }
this.byName.clear();
public void clear() { innerCache.clear(); }
protected void deactivate() { this.discoveryServices.clear(); this.listeners.clear(); this.cachedResults.clear(); }
public void dispose () { for ( final EntryWrapper wrapper : this.entryMap.values ().toArray ( new EntryWrapper[0] ) ) { wrapper.dispose (); } this.entryMap.clear (); } }
public void dispose () { for ( final EntryWrapper wrapper : this.entryMap.values ().toArray ( new EntryWrapper[0] ) ) { wrapper.dispose (); } this.entryMap.clear (); } }
/** * Set the matching rules to apply. * * <p>The input is a map of sets for bean compatibility.</p> * * @param rules matching rules */ public void setMatchingRules(@Nonnull @NonnullElements final Map<String,Collection<String>> rules) { Constraint.isNotNull(rules, "Map cannot be null"); matchingRules.clear(); for (final Map.Entry<String,Collection<String>> e : rules.entrySet()) { if (!Strings.isNullOrEmpty(e.getKey()) && e.getValue() != null) { matchingRules.putAll(e.getKey(), Collections2.filter(e.getValue(), Predicates.notNull())); } } }
/** * Inserts all features currently stored in this object into the working tree. */ public void flushAll() { for (String key : map.keySet()) { flush(key); } count = 0; map.clear(); }
public void flushToDisk(final File file) { // make a copy of the object, clear the current object, and write the copy to disk asynchronously CardinalityRecord newCardinalityRecord; synchronized (cardinalityMap) { newCardinalityRecord = new CardinalityRecord(this); this.cardinalityMap.clear(); } CardinalityRecord.writeToDisk(newCardinalityRecord, file); }
@Override public void processEndDocument() { long unlinkedNumber = unlinkedElementsMap.size(); if (unlinkedNumber > 0) { NeoLogger.warn("Some elements have not been linked ({0})", unlinkedNumber); for (String e : unlinkedElementsMap.asMap().keySet()) { NeoLogger.warn(" > " + e); } unlinkedElementsMap.clear(); } long conflictedId = conflictElementIdCache.estimatedSize(); if (conflictedId > 0) { NeoLogger.info("{0} key conflicts", conflictElementIdCache.estimatedSize()); conflictElementIdCache.invalidateAll(); } backend.save(); }
int lastReferenceIndex = currentReferenceIndex; long lastPosition = currentPosition; currentReads.clear(); currentReferenceIndex = referenceIndex; currentPosition = alignmentStart;