public void putAll( Map<? extends Integer, ? extends V> map ) { synchronized( mutex ) { m.putAll( map ); } } public void putAll( TIntObjectMap<? extends V> map ) {
public void putAll( TIntObjectMap<? extends V> map ) { synchronized( mutex ) { m.putAll( map ); } } public void 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(); }
decodingRules.putAll(o.mapIndex.decodingRules); referenceMapIndex = o.mapIndex; return o;
public void putAll( TIntObjectMap<V> map ) { synchronized( mutex ) { m.putAll( map ); } } public void clear() {
@Override public void putAll( TIntObjectMap<? extends V> map ) { synchronized( mutex ) { m.putAll( map ); } } @Override
public void putAll( Map<? extends Integer, ? extends V> map ) { synchronized( mutex ) { m.putAll( map ); } } public void putAll( TIntObjectMap<? extends V> map ) {
public void putAll( TIntObjectMap<? extends V> map ) { synchronized( mutex ) { m.putAll( map ); } } public void clear() {
@Override public void putAll( Map<? extends Integer, ? extends V> map ) { synchronized( mutex ) { m.putAll( map ); } } @Override
public void putAll( TIntObjectMap<? extends V> map ) { synchronized( mutex ) { m.putAll( map ); } } public void clear() {
public void putAll( Map<? extends Integer, ? extends V> map ) { synchronized( mutex ) { m.putAll( map ); } } public void putAll( TIntObjectMap<V> map ) {
public void putAll( Map<? extends Integer, ? extends V> map ) { synchronized( mutex ) { m.putAll( map ); } } public void putAll( TIntObjectMap<? extends V> map ) {
public void putAll(MetadataDictionary dictionary) { Preconditions.checkNotNull(dictionary, "dictionary"); typeMap.putAll(dictionary.typeMap); }
@Override @Synchronized public ChunkSnapshot toSnapshot() { ChunkSection[] sections = this.sections.clone(); for (int i = 0; i < sections.length; i++) { if (sections[i] != null) { sections[i] = sections[i].copy(); } } SectionedChunkSnapshot snapshot = new SectionedChunkSnapshot(sections, x, z); System.arraycopy(biomeId, 0, snapshot.biomeId, 0, biomeId.length); System.arraycopy(height, 0, snapshot.height, 0, height.length); snapshot.blockEntities.putAll(blockEntities); // TODO: This needs to be better return snapshot; }