Java String Join mergeDependencies(Set bundleDeps, List deps, Map disjointSets)

Here you can find the source of mergeDependencies(Set bundleDeps, List deps, Map disjointSets)

Description

merge Dependencies

License

Open Source License

Declaration

private static void mergeDependencies(Set bundleDeps, List deps, Map disjointSets) 

Method Source Code

//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);
            }
        }
    }
}

Related

  1. joinSplit(String record, String regex)
  2. joinString(String separator, String... elements)
  3. joinValues(Map map, String separator)
  4. joinWithSeparation(String a, String separator, String b)
  5. merge(ArrayList pArrayList, String pJoin)
  6. prefixed_join(String padder, Vector v, boolean quoted)
  7. strjoin(String sep, String... args)
  8. strjoinNL(String... args)