public void run(){
  allowToChange=false;
synchronized (actions) {
    if (!actions.isEmpty()) {
      for (Iterator iter=actions.iterator(); iter.hasNext(); ) {
        doGroupAction(iter.next());
        if (removeElementAfterAction) {
          iter.remove();
        }
      }
    }
  }
  reset();
}

public void run ( ) { allowToChange = false ; synchronized ( actions ) { if ( ! actions . isEmpty ( ) ) { for ( Iterator iter = actions . iterator ( ) ; iter . hasNext ( ) ; ) { doGroupAction ( iter . next ( ) ) ; if ( removeElementAfterAction ) { iter . remove ( ) ; } } } } reset ( ) ; }
implements for taskrunnable . run the function of scheduleablegroupaction on all the objects 1 by 1 .
