Class AbstractHistoricalList<E,​L extends List<E>>

Type Parameters:
E - element type
L - list type
All Implemented Interfaces:
Iterable<E>, Collection<E>, List<E>, HistoricalCollection<E>, HistoricalList<E>, HistoryManager.HistoricalElement
Direct Known Subclasses:
HistoricalArrayList, HistoricalLinkedList, HistoricalVector

public abstract class AbstractHistoricalList<E,​L extends List<E>>
extends AbstractHistoricalCollection<E,​L>
implements HistoricalList<E>
List-valued historical state. The current list is always maintained, and past states of the list are obtained by applying the events between now and the requested time in reverse.

The Iterator returned by this class does not support the remove(), add() and set() methods. Any returned sublist is unmodifiable.

Copyright (c) 2013-2019 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 2 jan. 2018
Author:
Alexander Verbraeck, Peter Knoppers, Wouter Schakel