Package java.util

Examples of java.util.Set.addAll()


        }

        // add (potentially) overridden names to the key.
        // TODO: see note above re: optimizations
        if (names != null) {
            key.addAll(names);
        }

        JavaProxyClass proxyClass = (JavaProxyClass) proxies.get(key);
        if (proxyClass == null) {
View Full Code Here


    if (oldTypeCategories != null) {
      // take the union of old and new categories elements (see https://bugs.eclipse.org/bugs/show_bug.cgi?id=125675)
      Set elements;
      if (newTypeCategories != null) {
        elements = new HashSet(oldTypeCategories.keySet());
        elements.addAll(newTypeCategories.keySet());
      } else
        elements = oldTypeCategories.keySet();
      Iterator iterator = elements.iterator();
      while (iterator.hasNext()) {
        IJavaElement element = (IJavaElement) iterator.next();
View Full Code Here

                    }

                    if ( resolveTransitiveDependencies )
                    {
                        Set excluded2 = new HashSet( excluded );
                        excluded2.addAll( dependency.getExclusions() );

                        Model p = retrievePom( resolver, dependency.getGroupId(), dependency.getArtifactId(),
                                               dependency.getVersion(), dependency.getScope(),
                                               resolveTransitiveDependencies, excluded2, dependency.getChain() );
View Full Code Here

                }
            }
        }
       
        final Set keySet = new HashSet();
        keySet.addAll(classMethods[0].keySet());
        keySet.addAll(classMethods[1].keySet());
        for (Iterator i = keySet.iterator(); i.hasNext();) {
            final Object key = i.next();

            final ClassMethod method0
View Full Code Here

            }
        }
       
        final Set keySet = new HashSet();
        keySet.addAll(classMethods[0].keySet());
        keySet.addAll(classMethods[1].keySet());
        for (Iterator i = keySet.iterator(); i.hasNext();) {
            final Object key = i.next();

            final ClassMethod method0
                = (ClassMethod)classMethods[0].remove(key);
View Full Code Here

    public void addConfiguation(Artifact configurationId, Set loadParentIds, Set startParentIds) throws NoSuchConfigException {
        Set startParents = getStatuses(startParentIds);

        // load parents are a superset of start parents
        Set loadParents = new LinkedHashSet(startParents);
        loadParents.addAll(getStatuses(loadParentIds));

        ConfigurationStatus configurationStatus = new ConfigurationStatus(configurationId, loadParents, startParents);
        configurations.put(configurationId, configurationStatus);
    }
View Full Code Here

    public void upgradeConfiguration(Artifact existingId, Artifact newId, Set newLoadParentIds, Set newStartParentIds) throws NoSuchConfigException {
        Set newStartParents = getStatuses(newStartParentIds);

        // load parents are a superset of start parents
        Set newLoadParents = new LinkedHashSet(newStartParents);
        newLoadParents.addAll(getStatuses(newLoadParentIds));

        ConfigurationStatus configurationStatus = (ConfigurationStatus) configurations.remove(existingId);
        if (configurationStatus == null) {
            throw new NoSuchConfigException(existingId);
        }
View Full Code Here

            ServiceEndpointMethodMappingType methodMapping = WSDescriptorParser.getMethodMappingForOperation(operationName, methodMappings);
            HeavyweightOperationDescBuilder operationDescBuilder = new HeavyweightOperationDescBuilder(bindingOperation, mapping, methodMapping, portStyle, exceptionMap, schemaInfoBuilder, javaXmlTypeMappings, classLoader, serviceEndpointInterface);
            OperationInfo operationInfo = operationDescBuilder.buildOperationInfo(soapVersion);
            operationInfos[i++] = operationInfo;
            operationDescs.add(operationInfo.getOperationDesc());
            wrapperElementQNames.addAll(operationDescBuilder.getWrapperElementQNames());
            hasEncoded |= operationDescBuilder.isEncoded();
        }
        HeavyweightTypeInfoBuilder builder = new HeavyweightTypeInfoBuilder(classLoader, schemaInfoBuilder.getSchemaTypeKeyToSchemaTypeMap(), wrapperElementQNames, operationDescs, hasEncoded);
        List typeInfo = builder.buildTypeInfo(mapping);
View Full Code Here

            log.warn("getGroupMembers() Group="+groupPrincipal+" does not exist.");
            return memberSet;
        }
        String[] members = ((String)groups.getProperty(groupPrincipal)).split(",");

        memberSet.addAll(Arrays.asList(members));
        return memberSet;
    }

    private String getUsersURI() {
        return (String) loginModule.getOptions().get(usersKey);
View Full Code Here

    }
  }
 
  public String[] listAll() throws IOException {
    Set files = new HashSet();
    files.addAll(Arrays.asList(primaryDir.listAll()));
    files.addAll(Arrays.asList(secondaryDir.listAll()));
    return (String[]) files.toArray(new String[files.size()]);
  }
 
  public String[] list() throws IOException {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.