Examples of retainAll()


Examples of org.jgroups.util.AckCollector.retainAll()

    }

    public void testRetainAll() {
        final AckCollector ac=new AckCollector(list);
        List<Address> members=Arrays.asList(one, two, three);
        ac.retainAll(members);
        System.out.println("ac=" + ac);
        assert ac.size() == 3;

        new Thread() {
            public void run() {
View Full Code Here

Examples of org.mcarthur.sandy.gwt.event.list.client.EventList.retainAll()

        assertEquals(replay, bel);

        List s = new ArrayList(bel);
        Collections.shuffle(s);
        s = s.subList(10, 90);
        bel.retainAll(s);
        assertEquals(replay, bel);

        s = new ArrayList(bel);
        Collections.shuffle(s);
        s = s.subList(10, 20);
View Full Code Here

Examples of org.mcarthur.sandy.gwt.event.list.client.RangedEventList.retainAll()

        rel.setStart(1);

        final List two = new ArrayList();
        two.add("two");

        rel.retainAll(two);

        assertEquals(1, rel.size());
        assertEquals(all.size(), el.size());
    }
View Full Code Here

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

        // Find a binding for which the join condition holds
        while (rightBindings != null) {
          // Limit the bindings to the ones that are in scope for this
          // filter
          QueryBindingSet scopeBindings = new QueryBindingSet(rightBindings);
          scopeBindings.retainAll(scopeBindingNames);

          try {
            if (strategy.isTrue(leftJoin.getCondition(), scopeBindings)) {
              return rightBindings;
            }
View Full Code Here

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

    throws StoreException
  {
    try {
      // Limit the bindings to the ones that are in scope for this filter
      QueryBindingSet scopeBindings = new QueryBindingSet(bindings);
      scopeBindings.retainAll(scopeBindingNames);

      return strategy.isTrue(condition, scopeBindings);
    }
    catch (ValueExprEvaluationException e) {
      // failed to evaluate condition
View Full Code Here

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

        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)));
        check(!s.containsAll(Generic.list(rand, v, "other")));
        check(s.retainAll(Generic.list(rand)));
        check(!s.retainAll(Generic.list(rand)));
        check(s.addAll(Generic.list(rand, v)));
        check(2 == s.size(), "There should be 2 items, not " + s.size());
        check(!s.addAll(Generic.list(rand, v)));
        check(2 == s.size(), "There should be 2 items, not " + s.size());
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.