Package java.util

Examples of java.util.List.removeAll()


                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


      }
      catch (UnsupportedOperationException good) {}
     
      try
      {
         fciTargets.removeAll(targets);
         fail("removeAll call did not fail");
      }
      catch (UnsupportedOperationException good) {}
     
      try
View Full Code Here

      cs = new ArrayList(allConvsForFormat);
    } else {
      cs = new ArrayList();
    }
   
    cs.removeAll(currentPath.getPath());

    //do we really want to be removing these?
    List forbidden = new ArrayList();
    for(int i = 0; i < cs.size(); i++){
      Converter c = (Converter) cs.get(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

                        throw new WfException("Unknown error", e);
                    }
                    remove.add(thw);
                }
            }
            waiters.removeAll(remove);
        }

        setComplete(true);
    }
View Full Code Here

        if (brokenTxns != null) {
          final List txnsForId = (List) brokenTxns.get(idAsLong);
          if (txnsForId != null) {

            // Remove from brokenTxns
            txnsForId.removeAll(fixed);

            // can we get rid of txnsForId and brokenTxns?
            if (txnsForId.isEmpty()) {
              brokenTxns.remove(idAsLong);
              if (brokenTxns.isEmpty())
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

            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

            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

            this.revDep = revDep;
        }
       
        public void computeExternalWaitingPeople(Set peopleToIgnore) {
            List waitingIndividuals = new ArrayList(revDep.getAssignedToList());
            waitingIndividuals.removeAll(peopleToIgnore);
            if (waitingIndividuals.isEmpty())
                externalPeople = null;
            else
                externalPeople = StringUtils.join(waitingIndividuals, ", ");
        }
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.