Replaces all web seeds with the ones specified in the
{@code seeds} list.

@param seeds the list of web seeds
350629
public void setWebSeeds(List<WebSeedEntry> seeds) {
        web_seed_entry_vector v = new web_seed_entry_vector();

        for (WebSeedEntry e : seeds) {
            v.push_back(e.swig());
        }

        ti.set_web_seeds(v);
    }
154809
public void setAdditionalRoots(List<String> roots) {

        List<String> additionalRoots = new ArrayList<>();
        // making sure all paths end with the path separator CHAR
        for (String path : roots) {
            if (path != null) {
                if (!path.endsWith(File.separator)) {
                    path += File.separator;
                }
            }
            additionalRoots.add(path);
        }
        m_additionalRoots = additionalRoots;
    }
488683
public final void fireDelete(List<Bean> beans) {
        ConfigChanges changes = new ConfigChanges();
        for (Bean bean : beans) {
            changes.add(ConfigChange.deleted(bean));
        }
        fire(changes);
    }
258815
public void set(final Iterable<String> strings) {
    checkNotNull(strings);
    candidates.clear();
    addAll(strings);
  }
482315
private final void setSeed(int seed) {

		// Annoying runtime check for initialisation of internal data
		// caused by java.util.Random invoking setSeed() during init.
		// This is unavoidable because no fields in our instance will
		// have been initialised at this point, not even if the code
		// were placed at the declaration of the member variable.
		if (mt == null) mt = new int[N];

		// ---- Begin Mersenne Twister Algorithm ----
		mt[0] = seed;
		for (mti = 1; mti < N; mti++) {
			mt[mti] = (MAGIC_FACTOR1 * (mt[mti-1] ^ (mt[mti-1] >>> 30)) + mti);
		}
		// ---- End Mersenne Twister Algorithm ----
	}
282882
public final void replace(final List<Resource> r1, final List<Resource> r2) {
    this.resources.removeAll(r1);
    this.resources.addAll(r2);
  }
39770
public List<V> replace(K key, Collection<? extends V> values) {
		List<V> replaced = removeAll(key);
		putAll(key, values);
		return replaced;
	}
152780
private void addSeed(SiteNode node) {
		try {
			if (!node.isRoot() && node.getHistoryReference() != null) {
				HttpMessage msg = node.getHistoryReference().getHttpMessage();
				if (!msg.getResponseHeader().isImage()) {
					spider.addSeed(msg);
				}
			}
		} catch (Exception e) {
			log.error("Error while adding seed for Spider scan: " + e.getMessage(), e);
		}
	}
1300828
@SafeVarargs
    public final void addAll(E... elements) {
        if (elements == null) throw new NullPointerException();
        addAll(Arrays.asList(elements));
    }
462652
public void setClusterNodes(java.util.Collection<ClusterNode> clusterNodes) {
        if (clusterNodes == null) {
            this.clusterNodes = null;
            return;
        }

        this.clusterNodes = new com.amazonaws.internal.SdkInternalList<ClusterNode>(clusterNodes);
    }
291477
@Override
    public List<Host> getSeedHosts() {
        List<Host> hosts = new ArrayList<Host>();
        if (seeds != null) {
            for (String seed : seeds.split(",")) {
                seed = seed.trim();
                if (seed.length() > 0) {
                    hosts.add(new Host(seed, this.port));
                }
            }
        }
        return hosts;
    }
890617
public FulltextMatch setPatterns(
                    final Collection<String> patterns
                    )
    {
        if (patterns == null  ||  patterns.size() == 0) {
            clearPatterns();
            return this;
        }

        synchronized (patterns) {
            for (String  pattern : patterns) {
                if (pattern == null  ||  pattern.length() == 0) {
                    throw new IllegalArgumentException( "null element" );
                }
            }

            clearPatterns();
            for (String  pattern : patterns) {
                addPattern( pattern );
            }
        }

        return this;
    }
839877
public void setConnections(java.util.Collection<String> connections) {
        if (connections == null) {
            this.connections = null;
            return;
        }

        this.connections = new java.util.ArrayList<String>(connections);
    }
831520
public ArrayList<WebSeedEntry> webSeeds() {
        web_seed_entry_vector v = ti.web_seeds();
        int size = (int) v.size();

        ArrayList<WebSeedEntry> l = new ArrayList<>(size);
        for (int i = 0; i < size; i++) {
            l.add(new WebSeedEntry(v.get(i)));
        }

        return l;
    }
1272761
public static void replaceWordsIgnoreCase(StringBuilder input, String[] words, String[] replaces) {
        replaceWords(input, words, replaces, true);
    }
901308
@Override
    public void setConfigs(List<String> configs) {
        configList.clear();
        if (configs != null) {
            configList.addAll(configs);
        }
    }
379961
@Override
    public void setSeed(long seed) {
        if (initialized) {
            throw new UnsupportedOperationException();
        }
        initialized = true;
        rnd = (seed ^ multiplier) & mask;
    }