Class AbstractHistoricalList.RemoveEvent<E,L extends List<E>>
- java.lang.Object
-
- org.opentrafficsim.core.perception.AbstractHistorical.EventValue<E>
-
- org.opentrafficsim.core.perception.collections.AbstractHistoricalCollection.EventCollection<E,L>
-
- org.opentrafficsim.core.perception.collections.AbstractHistoricalList.EventList<E,L>
-
- org.opentrafficsim.core.perception.collections.AbstractHistoricalList.RemoveEvent<E,L>
-
- Type Parameters:
E
- element typeL
- list type
- All Implemented Interfaces:
AbstractHistorical.Event
- Enclosing class:
- AbstractHistoricalList<E,L extends List<E>>
public static class AbstractHistoricalList.RemoveEvent<E,L extends List<E>> extends AbstractHistoricalList.EventList<E,L>
Class for events that remove a value from the list.Copyright (c) 2013-2022 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.- Version:
- $Revision$, $LastChangedDate$, by $Author$, initial version 1 jan. 2018
- Author:
- Alexander Verbraeck, Peter Knoppers, Wouter Schakel
-
-
Constructor Summary
Constructors Constructor Description RemoveEvent(double time, E value, int index)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
restore(L list)
Restores the collection to the state of before the event.String
toString()
-
Methods inherited from class org.opentrafficsim.core.perception.collections.AbstractHistoricalList.EventList
getIndex
-
Methods inherited from class org.opentrafficsim.core.perception.AbstractHistorical.EventValue
getTime, getValue
-
-
-
-
Constructor Detail
-
RemoveEvent
public RemoveEvent(double time, E value, int index)
Constructor.- Parameters:
time
- double; time of eventvalue
- E; value of eventindex
- int; index the value is at
-
-
Method Detail
-
restore
public void restore(L list)
Restores the collection to the state of before the event.
-
-