public boolean addAll(Collection<? extends SimulatorEvent> events) {
    long lastTimeStamp = (lastEvent == null) ? Long.MIN_VALUE : lastEvent
        .getTimeStamp();
    for (SimulatorEvent e : events) {
      if (e.getTimeStamp() < lastTimeStamp) {
        throw new IllegalArgumentException("Event happens in the past: "
            + e.getClass() + "(" + e.getTimeStamp() + "<" + lastTimeStamp);
      }
      e.setInternalCount(eventCount++);
    }
    return this.events.addAll(events);
  }
public boolean addAll ( Collection < ? extends SimulatorEvent > events ) { long lastTimeStamp = ( lastEvent == null ) ? Long . MIN_VALUE : lastEvent . getTimeStamp ( ) ; for ( SimulatorEvent e : events ) { if ( e . getTimeStamp ( ) < lastTimeStamp ) { throw new IllegalArgumentException ( "Event happens in the past: " + e . getClass ( ) + "(" + e . getTimeStamp ( ) + "<" + lastTimeStamp ) ; } e . setInternalCount ( eventCount ++ ) ; } return this . events . addAll ( events ) ; }
Adding all {@link SimulatorEvent}s.

@param events
The container contains all the events to be added.
@return true if the queue is changed as a result of the call (to follow the
same convention as Collection.addAll()).