Package java.util

Examples of java.util.List.removeAll()


            // 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


  public void insert(Object[] roots, Map attributes, ConnectionSet cs,
      ParentMap pm, UndoableEdit[] e) {
    Object[] visible = null;
    if (isPartial()) {
      List tmp = DefaultGraphModel.getDescendants(graphModel, roots);
      tmp.removeAll(visibleSet);
      if (!tmp.isEmpty())
        visible = tmp.toArray();
    }
    // Absorb local attributes
    GraphLayoutCacheEdit edit = createLocalEdit(roots, attributes, visible,
View Full Code Here

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

            plotValues.removeAll(removeValues);

            setPlotValues(plotValues);
        }
    }
View Full Code Here

            // 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

     * @throws XMPPException
     */
    private void sendTransportCandidatesOffer() throws XMPPException {
        List notOffered = resolver.getCandidatesList();

        notOffered.removeAll(offeredCandidates);

        // Send any unset candidate
        for (Object aNotOffered : notOffered) {
            sendTransportCandidateOffer((TransportCandidate) aNotOffered);
        }
View Full Code Here

            // 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

      }
    }
   
    //determine if required partitions requirements are met
    boolean requiredPartitionsRequirementsMet = !this.fHasRequiredPartitionTypes ||
      partitionTypeIDs.removeAll(this.fRequriedPartitionTypeIDs);
   
    //determine if allowable partitions requirements are met
    boolean allowablePartitionsRequirementsMet = false;
    if(this.fAllPartitionTypesAllowable) {
      allowablePartitionsRequirementsMet = true;
View Full Code Here

    //determine if allowable partitions requirements are met
    boolean allowablePartitionsRequirementsMet = false;
    if(this.fAllPartitionTypesAllowable) {
      allowablePartitionsRequirementsMet = true;
    } else {
      partitionTypeIDs.removeAll(this.fAllowablePartitionTypeIDs);
     
      //at this point all required partitions and allowable partitions have been removed
      allowablePartitionsRequirementsMet = partitionTypeIDs.size() == 0;
    }
   
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

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.