Package java.util

Examples of java.util.ArrayList.retainAll()


/*      */   public boolean retainAll(Collection collection)
/*      */   {
/*  644 */     if (this.fast) {
/*  645 */       synchronized (this) {
/*  646 */         ArrayList temp = (ArrayList)this.list.clone();
/*  647 */         boolean result = temp.retainAll(collection);
/*  648 */         this.list = temp;
/*  649 */         return result;
/*      */       }
/*      */     }
/*  652 */     synchronized (this.list) {
View Full Code Here


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

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.