public boolean addAll(Set s){
  if (s == null || s.isEmpty()) {
    return false;
  }
  Iterator it=s.iterator();
  boolean changed=false;
  while (it.hasNext()) {
    boolean c=add(it.next());
    if (c) {
      changed=true;
    }
  }
  return changed;
}

public boolean addAll ( Set s ) { if ( s == null || s . isEmpty ( ) ) { return false ; } Iterator it = s . iterator ( ) ; boolean changed = false ; while ( it . hasNext ( ) ) { boolean c = add ( it . next ( ) ) ; if ( c ) { changed = true ; } } return changed ; }
adds all entries in the given set to this set .
