Example #1
0
 public void addAll(ObjectSet<T> set) {
   ensureCapacity(set.size);
   for (T key : set) add(key);
 }
Example #2
0
 public void addAll(T[] array, int offset, int length) {
   ensureCapacity(length);
   for (int i = offset, n = i + length; i < n; i++) add(array[i]);
 }