Package java.util

Examples of java.util.ArrayList.removeAll()



    private Component getNewComponent(Set<Component> known, Component[] components)
    {
        List<Component> cs = new ArrayList(Arrays.asList( components ));
        cs.removeAll( known );
        Component c = cs.get( 0 );
        known.add(c);
        return c;
    }
View Full Code Here


        {
            final List missed = new ArrayList();
            missed.addAll( positivePatterns );
            missed.addAll( negativePatterns );

            missed.removeAll( patternsTriggered );

            if ( !missed.isEmpty() && logger.isWarnEnabled() )
            {
                final StringBuffer buffer = new StringBuffer();
View Full Code Here

            pluginDescriptor.setClassRealm( pluginContainer.getContainerRealm() );

            List unresolved = new ArrayList( dependencies );

            unresolved.removeAll( resolved );

            if ( getLogger().isDebugEnabled() )
            {
                // list all artifacts that were filtered out during the resolution process.
                // these are already present in the core container.
View Full Code Here

                            // Removing objects from list for old Shipping and Handling Charges Adjustment and Sales Tax Adjustment.
                            duplicateAdjustmentList.add(orderAdjustment);
                        }
                    }
                }
                orderAdjustments.removeAll(duplicateAdjustmentList);
            }
        } catch (GenericServiceException exc) {
            request.setAttribute("_ERROR_MESSAGE_", exc.getMessage());
            return "error";
        }
View Full Code Here

                if (rethrow != null)
                {
                    if (faultyResources != null)
                    {
                        Set<Resource> resourceKeys = faultyResources.keySet();
                        retry = (optionalResources.removeAll(resourceKeys));
                        for (Resource faultyResource : resourceKeys)
                        {
                            Boolean valid = validOnDemandResources.get(faultyResource);
                            if (valid != null && valid.booleanValue())
                            {
View Full Code Here

    IWorkspaceRoot root = ResourcesPlugin.getWorkspace().getRoot();
    Object[] projects = root.getProjects();
    new WorkbenchViewerComparator().sort(null, projects);
    projects = new ClosedProjectFilter().filter(null, (Object) null, projects);
    Collection result = new ArrayList(Arrays.asList(projects));
    result.removeAll(fProjectListDialogField.getElements());
    return result;
  }

  @Override
  public void dialogFieldChanged(DialogField field) {
View Full Code Here

    public boolean removeAll(Collection collection) {

        if (fast) {
            synchronized (this) {
                ArrayList temp = (ArrayList) list.clone();
                boolean result = temp.removeAll(collection);
                list = temp;
                return (result);
            }
        } else {
            synchronized (list) {
View Full Code Here

                if (((Object[]) valueToSubstract).length == 0) {
                    return null; //Special case. Using stringProperty-=, sets it to null.
                } else { //Otherwise, occurrences of valueToSubstract are removed from the array
                    List list = new ArrayList();
                    list.addAll(Arrays.asList((Object[]) currentValue));
                    list.removeAll(Arrays.asList((Object[]) valueToSubstract));
                    return list.toArray((Object[]) getBaseArray(expectedClass.getComponentType(), list.size()));
                }
            } else if (expectedClass.equals(int.class)) {
                return new Integer(((Integer) currentValue).intValue() - ((Integer) valueToSubstract).intValue());
            } else if (expectedClass.equals(long.class)) {
View Full Code Here

            // there are exclusions in the configuration
            List exclusions = Arrays.asList(conf.substring(2).split("\\!"));

            List ret = new ArrayList(Arrays.asList(node.getDescriptor()
                    .getPublicConfigurationsNames()));
            ret.removeAll(exclusions);

            return (String[]) ret.toArray(new String[ret.size()]);
        }
        return dependencyConfigurations;
    }
View Full Code Here

               
                // we may need to shave off geometries we did load only to make bounds
                // computation happy
                if(extraGeometries.size() > 0) {
                    List residualProperties = new ArrayList(properties);
                    residualProperties.removeAll(extraGeometries);
                    residualProperties.add("nearest_distance");
                    residualProperties.add("nearest_bearing");
                    String[] residualNames = (String[]) residualProperties.toArray(new String[residualProperties.size()]);
                    FeatureType targetType = DataUtilities.createSubType(superFeatureType(meta.getFeatureType()), residualNames);
                    features = new FeatureBoundsFeatureCollection(features, targetType);
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.