Package java.util

Examples of java.util.List.removeAll()


    {
        if (_removeValues != null)
        {
            List plotValues = getPlotValues();

            plotValues.removeAll(_removeValues);

            setPlotValues(plotValues);
        }
    }
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 (mapping.length == remove.size()) {
                        // all removed -> done
                    } else {
                        // only some removed
                        List remaining = new ArrayList(Arrays.asList(mapping));
                        remaining.removeAll(remove);
                        modified.put(propName, remaining.toArray(new TypeMapping[remaining.size()]));
                    }
                }
            }
            // finally re-add the modified mappings
View Full Code Here

                }
            }

            // Remove all wgaconfig jobs, no more in configuration
            List jobsToRemove = new ArrayList(_scheduler.getJobNames());
            jobsToRemove.removeAll(currentJobs);
            Iterator removeIt = jobsToRemove.iterator();
            while (removeIt.hasNext()) {
                String jobName = (String) removeIt.next();
                Job job = _scheduler.getJob(jobName);
                if (job != null && job.getOrigin() == Job.ORIGIN_WGACONFIG) {
View Full Code Here

     * @param newCol
     */
    public static void updateList(List list, Collection newCol) {
        List newList = new ArrayList(newCol);
        list.retainAll(newList);
        newList.removeAll(list);
        list.addAll(newList);
    }

    /**
     * Creates a new list that contains the same elements than the parameter
View Full Code Here

        }

        // Remove deleted files from container
        _files = existingFiles;
        List fileNamesInContainer = WGUtils.toLowerCase(con.getFileNames());
        fileNamesInContainer.removeAll(existingFiles.keySet());
        Iterator deletedFiles = fileNamesInContainer.iterator();
        while (deletedFiles.hasNext()) {
            con.removeFile((String) deletedFiles.next());
            con.save();
        }
View Full Code Here

    public Object[] getFields(String ejbName) {
        HashMap fieldMap = (HashMap)ejbFieldMap.get(ejbName);
        if (fieldMap != null) {
            List fields = new ArrayList(fieldMap.keySet());
            if (!generateFields) {
                fields.removeAll(getGeneratedRelationships(ejbName));
            }
            return fields.toArray();
        }
        return null;
    }
View Full Code Here

            if (transferer != null) {
                List platformFlavors =
                    transferer.getPlatformMappingsForNative(nat);
                if (!platformFlavors.isEmpty()) {
                    if (flavors != null) {
                        platformFlavors.removeAll(new HashSet(flavors));
                        // Prepending the platform-specific mappings ensures
                        // that the flavors added with
                        // addFlavorForUnencodedNative() are at the end of
                        // list.
                        platformFlavors.addAll(flavors);
View Full Code Here

            if (transferer != null) {
                List platformNatives =
                    transferer.getPlatformMappingsForFlavor(flav);
                if (!platformNatives.isEmpty()) {
                    if (natives != null) {
                        platformNatives.removeAll(new HashSet(natives));
                        // Prepend the platform-specific mappings to ensure
                        // that the natives added with
                        // addUnencodedNativeForFlavor() are at the end of
                        // list.
                        platformNatives.addAll(natives);
View Full Code Here

                // To prevent the List stored in the map from modification.
                // This also guarantees that removeAll() is supported.
                textPlainList = new ArrayList(textPlainList);
                if (retval != null && !retval.isEmpty()) {
                    // Use HashSet to get constant-time performance for search.
                    textPlainList.removeAll(new HashSet(retval));
                    retval.addAll(textPlainList);
                } else {
                    retval = textPlainList;
                }
            }
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.