public void handleEventsCollection ( final S symbol , final Collection < T > elements ) { final List < BiConsumer < S , T > > callbackList = callbacks . get ( symbol ) ; if ( callbackList == null ) { return ; } if ( callbackList . isEmpty ( ) ) { return ; } // Notify callbacks synchronously, to preserve the order of events for ( final T element : elements ) { callbackList . forEach ( ( c ) - > { . accept ( symbol , element ) ; } ) ; }
Process a list with event