Package VASSAL.tools.concurrent.listener
Class EventAccumulator<T>
java.lang.Object
VASSAL.tools.concurrent.listener.EventAccumulator<T>
- All Implemented Interfaces:
EventListener<T>
@Deprecated(since="2021-12-01",
forRemoval=true)
public class EventAccumulator<T>
extends Object
implements EventListener<T>
Deprecated, for removal: This API element is subject to removal in a future version.
An
EventListener
which accumulates the events it receives into
a List
.- Since:
- 3.2.0
- Author:
- Joel Uckelman
-
Field Summary
Modifier and TypeFieldDescriptionprotected final Collection
<Pair<Object, T>> Deprecated, for removal: This API element is subject to removal in a future version. -
Constructor Summary
ConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version.EventAccumulator
(Collection<Pair<Object, T>> col) Deprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionevents()
Deprecated, for removal: This API element is subject to removal in a future version.Gets the collection of received source-event pairs.void
Deprecated, for removal: This API element is subject to removal in a future version.Receive notification of an event.
-
Field Details
-
col
Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Constructor Details
-
EventAccumulator
public EventAccumulator()Deprecated, for removal: This API element is subject to removal in a future version. -
EventAccumulator
Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
receive
Deprecated, for removal: This API element is subject to removal in a future version.Receive notification of an event.- Specified by:
receive
in interfaceEventListener<T>
- Parameters:
src
- the source of the eventevent
- the event
-
events
Deprecated, for removal: This API element is subject to removal in a future version.Gets the collection of received source-event pairs.- Returns:
- the collection of sources and events received
-