Package java.util

Examples of java.util.ArrayList.removeAll()


            // create a list from the expected collection and remove
            // all values from the actual collection, this should get
            // an empty collection
            List eList = new ArrayList( eColl );
            eList.removeAll( aColl );
            assertTrue( "Collections do not match. expected:" + eColl + ", actual: " + aColl, eList.isEmpty() );
        }
        else
        {
            assertEquals( expected, actual );
View Full Code Here


   * @param selection
   */
  private void removeTags(ISelection selection) {
    IStructuredSelection structuredSelection = (IStructuredSelection) selection;
    List taskTags = new ArrayList(Arrays.asList(fTaskTags));
    taskTags.removeAll(structuredSelection.toList());
    fTaskTags = (TaskTag[]) taskTags.toArray(new TaskTag[taskTags.size()]);
    valueTable.setInput(fTaskTags);
  }

  private void save() {
View Full Code Here

   * @param selection
   */
  private void removeTags(ISelection selection) {
    IStructuredSelection structuredSelection = (IStructuredSelection) selection;
    List taskTags = new ArrayList(Arrays.asList(fTaskTags));
    taskTags.removeAll(structuredSelection.toList());
    fTaskTags = (TaskTag[]) taskTags.toArray(new TaskTag[taskTags.size()]);
    valueTable.setInput(fTaskTags);
  }

  private void save() {
View Full Code Here

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

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

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

        } finally {
            otherS.logout();

            // clear holds (in case of test failure)
            List holds = new ArrayList(Arrays.asList(retentionMgr.getHolds(child.getPath())));
            if (holds.removeAll(holdsBefore)) {
                for (Iterator it = holds.iterator(); it.hasNext();) {
                    retentionMgr.removeHold(child.getPath(), (Hold) it.next());
                }
            }
            superuser.save();
View Full Code Here

            }
            writer.write("\n}\n");
          }
          subgraphCounter++;
        }
        curNameSpaceNodes.removeAll(curNameSpaceNodes);

        // Add nodes that don't have a namespace prefix to a new
        // cluster

        for(int i = 0; i < nodes.length; i++) {
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

        }

        // check options
        List myOptionsList = new ArrayList( this.getParsedOptionList() );
        List otherOptionsList = new ArrayList( other.getParsedOptionList() );
        otherOptionsList.removeAll( myOptionsList );
        if ( !otherOptionsList.isEmpty() )
        {
            return false;
        }
View Full Code Here

            @Override
            public void actionPerformed(ActionEvent e) {
                ApplicationModel app = dbModel.getCurrentApplication();
                List<ReceiverListModel> lists = new ArrayList(dbModel.getReceiverLists());
                lists.removeAll(app.getReceiverLists());

                if (lists.size() > 0) {
                    Object[] listnames = new Object[lists.size()];
                    for (int i = 0; i < lists.size(); i++) {
                        listnames[i] = lists.get(i);
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

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.