/** * Adds all elements in this Collection. */ public boolean addAll(Collection<? extends E> c) { Assert.notNull(c,"Can not merge with NULL set"); writeLock.lock(); try { for (E object : c) { this.add(object); } return true; } finally { writeLock.unlock(); } }