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