Examples of removeAll()


Examples of org.openrdf.model.impl.LinkedHashModel.removeAll()

    }

    public String diff(Model model1, Model model2) {
        StringBuilder result = new StringBuilder();
        Model delta = new LinkedHashModel(model1);
        delta.removeAll(model2);
        String[] lines = new String[delta.size()];
        int i = 0;
        for (Statement s : delta) {
            lines[i++] = s.toString();
        }
View Full Code Here

Examples of org.openrdf.query.algebra.evaluation.QueryBindingSet.removeAll()

   * Static util method *
   *--------------------*/

  private static QueryBindingSet getFilteredBindings(BindingSet bindings, Set<String> problemVars) {
    QueryBindingSet filteredBindings = new QueryBindingSet(bindings);
    filteredBindings.removeAll(problemVars);
    return filteredBindings;
  }
}
View Full Code Here

Examples of org.openstreetmap.josm.data.osm.Node.removeAll()

     */
    private void unglueNode(ActionEvent e) {
        LinkedList<Command> cmds = new LinkedList<>();

        Node c = new Node(selectedNode);
        c.removeAll();
        getCurrentDataSet().clearSelection(c);
        cmds.add(new ChangeCommand(selectedNode, c));

        Node n = new Node(selectedNode, true);

View Full Code Here

Examples of org.pentaho.reporting.tools.configeditor.model.ConfigDescriptionModel.removeAll()

    public void actionPerformed(final ActionEvent e)
    {
      final int[] selectedEntries = getEntryList().getSelectedIndices();
      setSelectedEntry(null);
      final ConfigDescriptionModel model = getModel();
      model.removeAll(selectedEntries);
      getEntryList().clearSelection();
    }
  }

  /**
 
View Full Code Here

Examples of org.python.core.PySet.removeAll()

                check(object == rand, "Should be 'value' or rand, not " + object);
            }
        }
        check(!s.remove(new Random()), "The Random in the set shouldn't match a new Random");
        check(s.remove(rand));
        check(s.removeAll(Generic.list(rand, v)),
              "The set should contain v and indicate it removed it");
        check(s.isEmpty());
        check(s.addAll(Generic.list(rand, v)));
        check(2 == s.size(), "There should be 2 items, not " + s.size());
        check(s.containsAll(Generic.list(rand, v)));
View Full Code Here

Examples of org.restlet.data.Form.removeAll()

        cr.setRawValue(ACCESS_ID + ":" + sig);
        Assert.assertEquals(Verifier.RESULT_VALID,
                awsVerifier.verify(request, null));

        // Test invalid due to no date header
        headers.removeAll(HeaderConstants.HEADER_DATE);
        Assert.assertEquals(Verifier.RESULT_INVALID,
                awsVerifier.verify(request, null));

        // Test stale due to out of date header
        headers.add(HeaderConstants.HEADER_DATE,
View Full Code Here

Examples of org.rssowl.core.internal.persist.service.EntityIdsByEventType.removeAll()

        public void event(Collection<NewsReference> newsRefs) {
          LongArrayList list = new LongArrayList(newsRefs.size());
          for (NewsReference newsRef : newsRefs)
            list.add(newsRef.getId());
          EntityIdsByEventType entityIdsByEventType = dao.load();
          entityIdsByEventType.removeAll(list, list, list);
          dao.save(entityIdsByEventType);
        }
      };
      EntityIdsByEventType outstandingNewsIds = dao.load();
      List<NewsReference> persistedEntityRefs = outstandingNewsIds.getPersistedEntityRefs();
View Full Code Here

Examples of org.sf.bee.mongodb.i18n.BeeTranslationService.removeAll()

    }

    public final int removeLocalizations(final Object id) {
        try {
            final BeeTranslationService srvc = new BeeTranslationService(_db);
            return srvc.removeAll(_collName, id);
        } catch (Throwable ex) {
        }
        return -1;
    }
View Full Code Here

Examples of org.springframework.ide.eclipse.beans.ui.search.internal.BeansSearchResult.removeAll()

    return true;
  }

  public final IStatus run(IProgressMonitor monitor) {
    final BeansSearchResult result = (BeansSearchResult) getSearchResult();
    result.removeAll();
    for (IModelElement element : scope.getModelElements()) {
      if (monitor.isCanceled()) {
        throw new OperationCanceledException();
      }
      IModelElementVisitor visitor = new IModelElementVisitor() {
View Full Code Here

Examples of org.tmatesoft.svn.core.internal.wc.admin.SVNVersionedProperties.removeAll()

            SVNVersionedProperties originalBaseProperties = dir.getBaseProperties(name);
            SVNVersionedProperties workProperties = dir.getProperties(name);
            if (revertBase) {
                originalBaseProperties.removeAll();
            }
            workProperties.removeAll();
            for (Iterator names = newProperties.nameSet().iterator(); names.hasNext();) {
                String propName = (String) names.next();
                if (revertBase) {
                    originalBaseProperties.setPropertyValue(propName, newProperties.getSVNPropertyValue(propName));
                }
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.