public void add(EventBean theEvent){
  if (singleEvent == null) {
    singleEvent=theEvent;
  }
 else {
    if (eventList == null) {
      eventList=new ArrayList<EventBean>(5);
      eventList.add(singleEvent);
    }
    eventList.add(theEvent);
  }
}

public void add ( EventBean theEvent ) { if ( singleEvent == null ) { singleEvent = theEvent ; } else { if ( eventList == null ) { eventList = new ArrayList < EventBean > ( 5 ) ; eventList . add ( singleEvent ) ; } eventList . add ( theEvent ) ; } }
add an event to be dispatched .
