@Override public void clear(){
  for (int i=0; i < array.length(); i++) {
    array.set(i,defaultGetKeyReturnValue);
  }
  size.set(0);
}

@ Override public void clear ( ) { for ( int i = 0 ; i < array . length ( ) ; i ++ ) { array . set ( i , defaultGetKeyReturnValue ) ; } size . set ( 0 ) ; }
resets the internal state , but note that size does not change , and also counters are not reset !
