Package java.util

Examples of java.util.ArrayList.retainAll()


                        || cpc.getConfs().isEmpty() || cpc.getConfs().contains("*")) {
                    error = "A container already exists for the selected conf of "
                            + "the module descriptor";
                } else {
                    ArrayList list = new ArrayList(cpc.getConfs());
                    list.retainAll(selectedConfigurations);
                    if (!list.isEmpty()) {
                        error = "A container already exists for the selected conf of "
                                + "the module descriptor";
                    }
                }
View Full Code Here


        try {
            // 2.
        lNiveis = new SisGrupoAtributoDao().getAtributosOrdenados(grupoAtributo);
       
        // 3.
        lNiveis.retainAll(item.getItemEstruturaNivelIettns());
       
       
      } catch (ECARException e) {
        this.logger.error(e);
      }
View Full Code Here

       
        try
        {
            List groups = new ArrayList(registry.getGroupsForUser(principal.getName()));

            groups.retainAll(roles);
          
            // if authorization succeeds, set the user's Subject on this invocation context
            // so that the rest of the Thread is executed in the context of the appropriate Subject
            if (groups.size() > 0)
                ContextManagerFactory.getInstance().setCallerSubject(((WSLCPrincipal)principal).getSubject());
View Full Code Here

        }
        ArrayList al = new ArrayList();
        Iterator rc = rcs.iterator();
        al.addAll(collect(rc.next()));
        while (rc.hasNext()) {
            al.retainAll(collect(rc.next()));
        }
        return al;
    }

    private ArrayList collect(Object o) {
View Full Code Here

    public boolean retainAll(Collection collection) {

        if (fast) {
            synchronized (this) {
                ArrayList temp = (ArrayList) list.clone();
                boolean result = temp.retainAll(collection);
                list = temp;
                return (result);
            }
        } else {
            synchronized (list) {
View Full Code Here

  }

  public boolean retainAll(Collection c) {
    checkRealm();
    List list = new ArrayList(wrappedList);
    boolean changed = list.retainAll(c);
    if (changed) {
      ListDiff diff = Diffs.computeListDiff(wrappedList, list);
      wrappedList = list;
      updateTargetList(diff);
      fireListChange(diff);
View Full Code Here

    public boolean retainAll(Collection collection) {

        if (fast) {
            synchronized (this) {
                ArrayList temp = (ArrayList) list.clone();
                boolean result = temp.retainAll(collection);
                list = temp;
                return (result);
            }
        } else {
            synchronized (list) {
View Full Code Here

                                || cpc.confs.contains("*")) {
                            error = "A container already exists for the selected conf of "
                                    + "the module descriptor";
                        } else {
                            ArrayList list = new ArrayList(cpc.confs);
                            list.retainAll(selectedConfigurations);
                            if (!list.isEmpty()) {
                                error = "A container already exists for the selected conf of "
                                        + "the module descriptor";
                            }
                        }
View Full Code Here

      while (iit.hasNext())
      {
        rList.remove(iit.next());
      }
    }
    rList.retainAll(a.getDeletePropositions());
    if (!rList.isEmpty()) return false;
    SchedulabilityChecker c = (VelosoSchedulabilityChecker) checker.clone(); //This should have to be cloned here and below
    boolean result = c.addAction((InstantAction)a, this);
    if (result && a instanceof StartInstantAction)
    {
View Full Code Here

    public boolean retainAll(Collection collection) {

        if (fast) {
            synchronized (this) {
                ArrayList temp = (ArrayList) list.clone();
                boolean result = temp.retainAll(collection);
                list = temp;
                return (result);
            }
        } else {
            synchronized (list) {
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.