/** * Empties the map. */ public void clear() { this._map.clear(); }
public void clear() { synchronized( mutex ) { m.clear(); } }
private void rebuildGraph() { // This seems like overkill until you realize implementation may change from under us. // Multiple new instructions may be added from adding or removing a single instruction. Set<MethodLocation> staleLocations = locationToNodePile.keySet(); Set<MethodLocation> implementationLocations = implementation.getInstructions().stream().map(BuilderInstruction::getLocation) .collect(Collectors.toSet()); Set<MethodLocation> addedLocations = new HashSet<>(implementationLocations); addedLocations.removeAll(staleLocations); for (MethodLocation location : addedLocations) { addToNodePile(location); } Set<MethodLocation> removedLocations = new HashSet<>(staleLocations); removedLocations.removeAll(implementationLocations); removedLocations.forEach(this::removeFromNodePile); TIntObjectMap<MethodLocation> newAddressToLocation = buildAddressToLocation(implementation); addressToLocation.clear(); addressToLocation.putAll(newAddressToLocation); recreateAndExecute(); }
public void clear() { elements.clear(); }
public synchronized void shutdown() { if (sendSystem != null) { sendSystem.shutdown(); sendSystem = null; } if (receiveThread != null) { receiveThread.interrupt(); receiveThread = null; } if (combinedAudioExecutor != null) { combinedAudioExecutor.shutdownNow(); combinedAudioExecutor = null; } if (opusEncoder != null) { Opus.INSTANCE.opus_encoder_destroy(opusEncoder); opusEncoder = null; } opusDecoders.valueCollection().forEach(Decoder::close); opusDecoders.clear(); }
private synchronized void setupReceiveSystem() { if (udpSocket != null && !udpSocket.isClosed() && receiveHandler != null && receiveThread == null) { setupReceiveThread(); } else if (receiveHandler == null && receiveThread != null) { receiveThread.interrupt(); receiveThread = null; if (combinedAudioExecutor != null) { combinedAudioExecutor.shutdownNow(); combinedAudioExecutor = null; } opusDecoders.valueCollection().forEach(Decoder::close); opusDecoders.clear(); } else if (receiveHandler != null && !receiveHandler.canReceiveCombined() && combinedAudioExecutor != null) { combinedAudioExecutor.shutdownNow(); combinedAudioExecutor = null; } }
@Override public void clear() { wrapped.clear(); }
/** * Empties the map. */ public void clear() { this._map.clear(); }
/** * {@inheritDoc} */ public void clear() { map.clear(); range = 0; }
public void clear() { map.clear(); }
public void clear() { synchronized( mutex ) { m.clear(); } }
/** * Empties the map. */ public void clear() { this._map.clear(); }
/** * {@inheritDoc} */ public void clear() { map.clear(); range = 0; }
/** * Empties the map. */ public void clear() { this._map.clear(); }
/** * {@inheritDoc} */ public void clear() { edges.clear(); }
/** * {@inheritDoc} */ public void clear() { vertexToEdges.clear(); typeCounts.clear(); size = 0; }
/** * {@inheritDoc} */ public void clear() { vertexToEdges.clear(); typeCounts.clear(); size = 0; }
/** * Clears the state of this {@code Pool} */ public void destroy() { synapseConnections.clear(); synapsesBySourceIndex.clear(); synapseConnections = null; synapsesBySourceIndex = null; }
/** * {@inheritDoc} */ public void clear() { vertexToEdges.clear(); typeCounts.clear(); size = 0; }
@Override public Array<T> fill(T value, int start, int end) { if (value == defaultValue || (value != null && value.equals(defaultValue()))) { this.values.clear(); } else { for (int i=start; i<end; ++i) { this.values.put(i, value); } } return this; }