Package java.util

Examples of java.util.List.retainAll()


        public boolean retainAll(Collection o) {
            if (fast) {
                synchronized (FastArrayList.this) {
                    ArrayList temp = (ArrayList) list.clone();
                    List sub = get(temp);
                    boolean r = sub.retainAll(o);
                    if (r) last = first + sub.size();
                    list = temp;
                    expected = temp;
                    return r;
                }
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

        //first find all the matching method names
        List nodes = getMatches(mapping, "./method[@name='" + method.getName() + "']");
        //remove the ones that aren't in our acceptable set, if one is specified
        if(availableNodes != null)
        {
            nodes.retainAll(availableNodes);
        }
        //no name found, so no matches
        if(nodes.size() == 0) return null;
        //if the method has no params, then more than one mapping is pointless
        Class[] parameterTypes = method.getParameterTypes();
View Full Code Here

        public boolean retainAll(Collection o) {
            if (fast) {
                synchronized (FastArrayList.this) {
                    ArrayList temp = (ArrayList) list.clone();
                    List sub = get(temp);
                    boolean r = sub.retainAll(o);
                    if (r) last = first + sub.size();
                    list = temp;
                    expected = temp;
                    return r;
                }
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

      {
         lock.readLock().acquire();
         try
         {
            List state = getCurrentState(true);
            return state.retainAll(c);
         }
         finally
         {
            lock.readLock().release();
         }
View Full Code Here

        public boolean retainAll(Collection o) {
            if (fast) {
                synchronized (FastArrayList.this) {
                    ArrayList temp = (ArrayList) list.clone();
                    List sub = get(temp);
                    boolean r = sub.retainAll(o);
                    if (r) {
                        last = first + sub.size();
                    }
                    list = temp;
                    expected = temp;
View Full Code Here

                getLeftResultSet().getAllResultColumns(null);
        ResultColumnList rightRCL =
                getRightResultSet().getAllResultColumns(null);

        List columnNames = extractColumnNames(leftRCL);
        columnNames.retainAll(extractColumnNames(rightRCL));

        ResultColumnList commonColumns =
                (ResultColumnList) getNodeFactory().getNode(
                        C_NodeTypes.RESULT_COLUMN_LIST,
                        getContextManager());
View Full Code Here

/*     */     {
/* 643 */       this.lock.readLock().acquire();
/*     */       try
/*     */       {
/* 646 */         List state = getCurrentState(true);
/* 647 */         boolean bool = state.retainAll(c);
/*     */         return bool; } finally { this.lock.readLock().release(); }
/*     */     }
/*     */     catch (Exception ex)
/*     */     {
/*     */     }
View Full Code Here

/*      */     {
/*  873 */       if (FastArrayList.this.fast) {
/*  874 */         synchronized (FastArrayList.this) {
/*  875 */           ArrayList temp = (ArrayList)FastArrayList.this.list.clone();
/*  876 */           List sub = get(temp);
/*  877 */           boolean r = sub.retainAll(o);
/*  878 */           if (r) this.last = (this.first + sub.size());
/*  879 */           FastArrayList.this.list = temp;
/*  880 */           this.expected = temp;
/*  881 */           return r;
/*      */         }
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.