public void dispatch ( ) { // iterate by index to avoid concurrent modification exceptions for ( int i = 0 ; i < listeners . size ( ) ; i ++ ) { listeners . get ( i ) . dispatch ( ) ; } }
Dispatches all events enqueued prior to this call serially and in order for every listener .