Examples of containsAll()


Examples of java.util.List.containsAll()

      }
      List<SingleElementSymbol> orderColumns = ((OrderBy)node.getProperty(NodeConstants.Info.SORT_ORDER)).getSortKeys();
      PlanNode possibleSort = NodeEditor.findNodePreOrder(node, NodeConstants.Types.GROUP, NodeConstants.Types.SOURCE | NodeConstants.Types.ACCESS);
      if (possibleSort != null) {
        List exprs = (List)possibleSort.getProperty(Info.GROUP_COLS);
        if (exprs != null && exprs.containsAll(orderColumns)) {
          exprs.removeAll(orderColumns);
          orderColumns.addAll(exprs);
          possibleSort.setProperty(Info.GROUP_COLS, orderColumns);
          if (node.getParent() == null) {
            root = node.getFirstChild();
View Full Code Here

Examples of java.util.List.containsAll()

            List receivedDonuts = Arrays.asList(m_consumers[i].getAllDonuts());
            assertEquals(
                    "The number of received donuts must be the same as the number of sent donuts.",
                    sentDonuts.size(), receivedDonuts.size());
            assertTrue("The receiver must have eaten all sent donuts.",
                    receivedDonuts.containsAll(sentDonuts));
        }
    }

    /**
     * Test the synchronism of event sending for the component.
View Full Code Here

Examples of java.util.List.containsAll()

            return null;
        } else {
            for (int j = 0; j < pss.length; j++) {
                ProvidedServiceDescription psd = pss[j];
                List specs = Arrays.asList(psd.getServiceSpecifications());
                if (specs.containsAll(m_specifications)) {
                    return psd;
                }
            }
        }
View Full Code Here

Examples of java.util.List.containsAll()

     * <code>false</code> otherwise.
     * @see java.util.Collection#contains(java.lang.Object)
     */
    public boolean containsAll(Collection c) {
        List list = (List) m_dependency.getService();
        return list.containsAll(c);
    }

    /**
     * Checks if at least one provider matching with the dependency
     * is available.
View Full Code Here

Examples of java.util.List.containsAll()

        int size = finalUniqueKeys.size();
        boolean skip = false;
        Iterator tempUks = finalUniqueKeys.entrySet().iterator();
        while ( tempUks.hasNext() ) {
          final UniqueKey currentUk = (UniqueKey) ( (Map.Entry) tempUks.next() ).getValue();
          if ( currentUk.getColumns().containsAll( columns ) && columns
              .containsAll( currentUk.getColumns() ) ) {
            skip = true;
            break;
          }
        }
View Full Code Here

Examples of java.util.List.containsAll()

        int size = finalUniqueKeys.size();
        boolean skip = false;
        Iterator tempUks = finalUniqueKeys.entrySet().iterator();
        while ( tempUks.hasNext() ) {
          final UniqueKey currentUk = (UniqueKey) ( (Map.Entry) tempUks.next() ).getValue();
          if ( currentUk.getColumns().containsAll( columns ) && columns
              .containsAll( currentUk.getColumns() ) ) {
            skip = true;
            break;
          }
        }
View Full Code Here

Examples of java.util.List.containsAll()

        int size = finalUniqueKeys.size();
        boolean skip = false;
        Iterator tempUks = finalUniqueKeys.entrySet().iterator();
        while ( tempUks.hasNext() ) {
          final UniqueKey currentUk = (UniqueKey) ( (Map.Entry) tempUks.next() ).getValue();
          if ( currentUk.getColumns().containsAll( columns ) && columns
              .containsAll( currentUk.getColumns() ) ) {
            skip = true;
            break;
          }
        }
View Full Code Here

Examples of java.util.List.containsAll()

        ksession.fireAllRules();
        ksession.dispose();

        assertEquals( 2,
                      list.size() );
        assertTrue( list.containsAll( Arrays.asList( new String[]{"rule1", "rule2"} ) ) );
    }

    @Test
    public void testBasicAuthentication() throws SAXException,
                               IOException {
View Full Code Here

Examples of java.util.List.containsAll()

        assertEquals("values should be empty if HashMap is" +
                     "\nTest: " + test + "\nReal: " + known,
                     empty, values.isEmpty());
        assertTrue("values should contain all HashMap's elements" +
                   "\nTest: " + test + "\nReal: " + known,
                    test.containsAll(known));
        assertTrue("values should contain all HashMap's elements" +
                   "\nTest: " + test + "\nReal: " + known,
                   known.containsAll(test));
        // originally coded to use a HashBag, but now separate jar so...
        for (Iterator it = known.iterator(); it.hasNext();) {
View Full Code Here

Examples of java.util.List.containsAll()

        // make sure all privileges are present now
        List privs = currentPrivileges(acl, testPrincipal);
        assertTrue("Privileges added through 'addAccessControlEntry' must be " +
                "reflected upon getAccessControlEntries",
                privs.contains(aggregate) || privs.containsAll(Arrays.asList(aggregate.getAggregatePrivileges())));
    }

    public void testAddAggregatedPrivilegesSeparately() throws NotExecutableException, RepositoryException {
        checkCanModifyAc(path);
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.