public synchronized void clear(){
  Entry tab[]=table;
  for (int i=0; i < tab.length; ++i) {
    for (Entry e=tab[i]; e != null; e=e.next)     e.value=null;
    tab[i]=null;
  }
  count=0;
  recordModification(tab);
}

public synchronized void clear ( ) { Entry tab [ ] = table ; for ( int i = 0 ; i < tab . length ; ++ i ) { for ( Entry e = tab [ i ] ; e != null ; e = e . next ) e . value = null ; tab [ i ] = null ; } count = 0 ; recordModification ( tab ) ; }
removes all mappings from this map .
