@Override public void clear() { multimap.clear(); } }
@Override public void clear() { fromMultimap.clear(); }
@Override public void clear() { multimap.clear(); }
@Override public void clear() { multimap.clear(); } }
@Override public void clear() { multimap().clear(); } }
@Override public void clear() { fromMultimap.clear(); }
@Override public Description matchCompilationUnit(CompilationUnitTree tree, VisitorState state) { /* * Clear the collections to save memory. (I wonder if it also helps to handle weird cases when a * class has multiple definitions. But I would expect for multiple definitions within the same * compiler invocation to cause deeper problems.) */ paramTypesForMethod.clear(); callersToEvaluate.clear(); // should have already been cleared return NO_MATCH; }
@Override public void clear() { multimap().clear(); } }
@Override public void clear() { synchronized (mutex) { delegate().clear(); } }
@Override public void clear() { delegate().clear(); }
/** * Add sharding value for database sharding only. * * <p>The sharding operator is {@code =}</p> * When you only need to sharding database, use this method to add database sharding value. * * @param value sharding value */ public void setDatabaseShardingValue(final Comparable<?> value) { databaseShardingValues.clear(); addDatabaseShardingValue(HintManagerHolder.DB_TABLE_NAME, value); databaseShardingOnly = true; }
@Override public void clear() { synchronized (mutex) { delegate().clear(); } }
@Override public void clear() { delegate().clear(); }
@MapFeature.Require(SUPPORTS_REMOVE) public void testClearPropagatesToAsMap() { Map<K, Collection<V>> asMap = multimap().asMap(); multimap().clear(); assertEmpty(asMap); }
@MapFeature.Require(SUPPORTS_REMOVE) public void testClearPropagatesToEntries() { Collection<Entry<K, V>> entries = multimap().entries(); multimap().clear(); assertEmpty(entries); } }
@MapFeature.Require(SUPPORTS_REMOVE) public void testClear() { multimap().clear(); assertCleared(); }
@MapFeature.Require(SUPPORTS_REMOVE) @CollectionSize.Require(absent = ZERO) public void testClearPropagatesToAsMapGet() { for (K key : sampleKeys()) { resetContainer(); Collection<V> collection = multimap().asMap().get(key); if (collection != null) { multimap().clear(); assertEmpty(collection); } } }
@CollectionSize.Require(absent = ZERO) @MapFeature.Require(absent = SUPPORTS_REMOVE) public void testClearUnsupported() { try { multimap().clear(); fail("Expected UnsupportedOperationException"); } catch (UnsupportedOperationException expected) { } }
@MapFeature.Require(SUPPORTS_REMOVE) @CollectionSize.Require(absent = ZERO) public void testClearPropagatesToGet() { for (K key : sampleKeys()) { resetContainer(); Collection<V> collection = multimap().get(key); multimap().clear(); assertEmpty(collection); } }
public synchronized void clearSplits() { splits.clear(); partitionedSplitCountTracker.setPartitionedSplitCount(getPartitionedSplitCount()); runningDrivers = 0; updateSplitQueueSpace(); }