Here you can find the source of mergeDependencies(Set bundleDeps, List deps, Map disjointSets)
private static void mergeDependencies(Set bundleDeps, List deps, Map disjointSets)
//package com.java2s; /******************************************************************************* * Copyright (c) 2006 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * * Contributors://w ww. j a v a2 s .c o m * IBM Corporation - initial API and implementation *******************************************************************************/ import java.util.*; public class Main { private static void mergeDependencies(Set bundleDeps, List deps, Map disjointSets) { if (deps != null) { // merge dependencies bundleDeps.addAll(deps); Iterator iter = deps.iterator(); while (iter.hasNext()) { String name = (String) iter.next(); mergeDependencies(bundleDeps, (List) disjointSets.get(name), disjointSets); } } } }