Package java.util.concurrent

Examples of java.util.concurrent.CopyOnWriteArrayList$SubList


/*     */   {
/* 169 */     if (retrieval == null) {
/* 170 */       throw new IllegalArgumentException("Null retrieval");
/*     */     }
/* 172 */     if (!(this.retrievals instanceof CopyOnWriteArrayList)) {
/* 173 */       this.retrievals = new CopyOnWriteArrayList(this.retrievals);
/*     */     }
/* 175 */     this.retrievals.add(retrieval);
/* 176 */     this.scopeKey = null;
/*     */   }
View Full Code Here


/*     */   {
/* 181 */     if (retrieval == null) {
/* 182 */       throw new IllegalArgumentException("Null retrieval");
/*     */     }
/* 184 */     if (!(this.retrievals instanceof CopyOnWriteArrayList)) {
/* 185 */       this.retrievals = new CopyOnWriteArrayList(this.retrievals);
/*     */     }
/* 187 */     this.retrievals.add(0, retrieval);
/* 188 */     this.scopeKey = null;
/*     */   }
View Full Code Here

* User: webserg
* Date: 12.12.11
*/
public class CopyOnWriteListUsing {
    public static void main(String[] args) {
        List l = new CopyOnWriteArrayList();
    }
View Full Code Here

         if (EMAIL.equals(filter))
         {
            q.setEmail(keyword);
         }
      }
      List results = new CopyOnWriteArrayList();
      results.addAll(service.getUserHandler().findUsers(q).getAll());
      // remove if user doesn't exist in selected group
      MembershipHandler memberShipHandler = service.getMembershipHandler();

      if (groupId != null && groupId.trim().length() != 0)
      {
         for (Object user : results)
         {
            if (memberShipHandler.findMembershipsByUserAndGroup(((User)user).getUserName(), groupId).size() == 0)
            {
               results.remove(user);
            }
         }
      }
      ObjectPageList objPageList = new ObjectPageList(results, 10);
      uiIterator_.setPageList(objPageList);
View Full Code Here

    boolean _waitToEmit = true;
   

    public FeederBatchSpout(List<String> fields) {
        _outFields = new Fields(fields);
        _id = RegisteredGlobalState.registerState(new CopyOnWriteArrayList());
        _semaphoreId = RegisteredGlobalState.registerState(new CopyOnWriteArrayList());
    }
View Full Code Here

    private List<DataSetDescriptor> dataSetDescriptors;

    private final static List<DataTableRow> NO_ROWS = Lists.newArrayList();

    protected DataTable(List<String> headers, List<DataTableRow> rows) {
        this(headers, new CopyOnWriteArrayList(rows), null, null, ImmutableList.of(DataSetDescriptor.DEFAULT_DESCRIPTOR));
    }
View Full Code Here

    protected DataTable(List<String> headers, List<DataTableRow> rows) {
        this(headers, new CopyOnWriteArrayList(rows), null, null, ImmutableList.of(DataSetDescriptor.DEFAULT_DESCRIPTOR));
    }

    protected DataTable(List<String> headers, List<DataTableRow> rows, String title, String description) {
        this(headers, new CopyOnWriteArrayList(rows), title, description, ImmutableList.of(new DataSetDescriptor(0,0,title, description)));
    }
View Full Code Here

        this(headers, new CopyOnWriteArrayList(rows), title, description, ImmutableList.of(new DataSetDescriptor(0,0,title, description)));
    }

    protected DataTable(List<String> headers, List<DataTableRow> rows, String title, String description, List<DataSetDescriptor> dataSetDescriptors) {
        this.headers = headers;
        this.rows = new CopyOnWriteArrayList(rows);
        this.predefinedRows = !rows.isEmpty();
        this.dataSetDescriptors = dataSetDescriptors;
        if ((title != null) || (description != null)) {
            setLatestNameAndDescription(title, description);
        }
View Full Code Here

  @Beta
  @GwtIncompatible("CopyOnWriteArrayList")
  public static CopyOnWriteArrayList newCopyOnWriteArrayList()
  {
    return new CopyOnWriteArrayList();
  }
View Full Code Here

  @Beta
  @GwtIncompatible("CopyOnWriteArrayList")
  public static CopyOnWriteArrayList newCopyOnWriteArrayList(Iterable paramIterable)
  {
    ArrayList localArrayList = (paramIterable instanceof Collection) ? Collections2.cast(paramIterable) : newArrayList(paramIterable);
    return new CopyOnWriteArrayList(localArrayList);
  }
View Full Code Here

TOP

Related Classes of java.util.concurrent.CopyOnWriteArrayList$SubList

Copyright © 2018 www.massapicom. 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.