public void commit(){
  activeValues.clear();
  activeValues.addAll(pendingValues);
}

public void commit ( ) { activeValues . clear ( ) ; activeValues . addAll ( pendingValues ) ; }
makes the pending values active .
