Package java.util

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


            List rsStack = getResultSetStack(contextNode, node);
           
            if (allResultSets.containsAll(rsStack)) {
                continue;
            }
            if (!rsStack.containsAll(allResultSets)) {
                singleParentage = false;
            }
            allResultSets.addAll(rsStack);
        }
       
View Full Code Here

    if (fieldsGroup1.containsAll(fieldsGroup2))
    {
      // c2 contains all elements of c1, so c1 is subgroup of c2
      return 1;
    }
    if (fieldsGroup2.containsAll(fieldsGroup1))
    {
      // c1 contains all elements of c2, so c2 is subgroup of c1
      return -1;
    }
    // not compareable, invalid groups
View Full Code Here

      {
         lock.readLock().lock();
         try
         {
            List state = getCurrentState(false);
            return state.containsAll(c);
         }
         finally
         {
            lock.readLock().unlock();
         }
View Full Code Here

            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

            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

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

        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

        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

        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

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.