public List < NodeEvent > getAndClearEventslist ( ) { ArrayList < NodeEvent > result = new ArrayList < NodeEvent > ( eventslist ) ; eventslist . clear ( ) ; return result ; }
Gets the copy of the buffer and clears the buffer .