E
- element typepublic class HistoricalArrayList<E> extends AbstractHistoricalList<E,ArrayList<E>>
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.
AbstractHistoricalList.AddEvent<E,L extends List<E>>, AbstractHistoricalList.EventList<E,L extends List<E>>, AbstractHistoricalList.RemoveEvent<E,L extends List<E>>
AbstractHistoricalCollection.EventCollection<E,C extends Collection<E>>
AbstractHistorical.EventValue<T>
Constructor and Description |
---|
HistoricalArrayList(HistoryManager historyManager)
Constructor.
|
HistoricalArrayList(HistoryManager historyManager,
Collection<? extends E> c)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
ArrayList<E> |
get()
Returns the current list.
|
ArrayList<E> |
get(Time time)
Returns a past list.
|
String |
toString() |
add, add, addAll, get, indexOf, lastIndexOf, listIterator, listIterator, remove, remove, set, subList
addAll, clear, contains, containsAll, fill, fill, getCollection, isEmpty, iterator, removeAll, retainAll, size, toArray, toArray
addEvent, cleanUpHistory, getEvent, getEvents, getLastEvent, isLastState, now, removeEvent
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
replaceAll, sort
removeIf
addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, removeAll, retainAll, size, spliterator, toArray, toArray
parallelStream, stream
public HistoricalArrayList(HistoryManager historyManager)
historyManager
- HistoryManager; history managerpublic HistoricalArrayList(HistoryManager historyManager, Collection<? extends E> c)
historyManager
- HistoryManager; history managerc
- Collection<? extends E>; initial collectionCopyright © 2014–2019 Delft University of Technology. All rights reserved.