E - element typeL - list typepublic abstract class AbstractHistoricalList<E,L extends List<E>> extends AbstractHistoricalCollection<E,L> implements HistoricalList<E>
Iterator returned by this class does not support the remove(), add() and set() methods.
Any returned sublist is unmodifiable.
Copyright (c) 2013-2018 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
| Modifier and Type | Class and Description |
|---|---|
static class |
AbstractHistoricalList.AddEvent<E,L extends List<E>>
Class for events that add a value to the list.
|
static class |
AbstractHistoricalList.EventList<E,L extends List<E>>
Abstract super class for events that add or remove a value from the list.
|
static class |
AbstractHistoricalList.RemoveEvent<E,L extends List<E>>
Class for events that remove a value from the list.
|
AbstractHistoricalCollection.EventCollection<E,C extends Collection<E>>AbstractHistorical.EventValue<T>| Modifier | Constructor and Description |
|---|---|
protected |
AbstractHistoricalList(HistoryManager historyManager,
L list)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(E value) |
void |
add(int index,
E value) |
boolean |
addAll(int index,
Collection<? extends E> c) |
E |
get(int index) |
int |
indexOf(Object o) |
int |
lastIndexOf(Object o) |
ListIterator<E> |
listIterator() |
ListIterator<E> |
listIterator(int index) |
E |
remove(int index) |
boolean |
remove(Object value) |
E |
set(int index,
E value) |
List<E> |
subList(int fromIndex,
int toIndex) |
addAll, clear, contains, containsAll, fill, fill, getCollection, isEmpty, iterator, removeAll, retainAll, size, toArray, toArrayaddEvent, cleanUpHistory, getEvent, getEvents, getLastEvent, isLastState, now, removeEventclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitget, get, replaceAll, sortremoveIfaddAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, removeAll, retainAll, size, spliterator, toArray, toArrayparallelStream, streamprotected AbstractHistoricalList(HistoryManager historyManager, L list)
historyManager - HistoryManager; history managerlist - L; initial listpublic boolean add(E value)
public boolean remove(Object value)
public boolean addAll(int index,
Collection<? extends E> c)
public int lastIndexOf(Object o)
lastIndexOf in interface List<E>public ListIterator<E> listIterator()
listIterator in interface List<E>public ListIterator<E> listIterator(int index)
listIterator in interface List<E>Copyright © 2014–2018 Delft University of Technology. All rights reserved.