Class ListEventConsumer

    • Constructor Detail

      • ListEventConsumer

        public ListEventConsumer()
      • ListEventConsumer

        public ListEventConsumer​(List events)
        Constructs an instance that adds events to the provided list.
        Parameters:
        events - The list to which events will be added, or null.
    • Method Detail

      • getEvents

        public List getEvents()
        Returns the List of events added to this consumer.
        Returns:
        The List of events added to this consumer.
      • setEvents

        public void setEvents​(List events)
        Sets the List to which events will be written.
        Parameters:
        events - The List to which events will be written.
      • reset

        public void reset()
        Removes all events from the internal list, making it available for reuse.