コード例 #1
0
 public boolean addAll(int index, ByteCollection collection) {
   boolean modified = false;
   for (ByteIterator iter = collection.iterator(); iter.hasNext(); ) {
     add(index++, iter.next());
     modified = true;
   }
   return modified;
 }
コード例 #2
0
/*     */     public boolean addAll(long index, ByteCollection c) {
/* 578 */       ensureIndex(index);
/* 579 */       this.to += c.size();
/*     */ 
/* 585 */       return this.l.addAll(this.from + index, c);
/*     */     }