E
- element typepublic class HistoricalLinkedHashSet<E> extends AbstractHistoricalCollection<E,LinkedHashSet<E>> implements HistoricalSet<E>
Iterator
returned by this class does not support the remove()
method. Any returned subset 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.
AbstractHistoricalCollection.AddEvent<E,C extends Collection<E>>, AbstractHistoricalCollection.EventCollection<E,C extends Collection<E>>, AbstractHistoricalCollection.RemoveEvent<E,C extends Collection<E>>
AbstractHistorical.EventValue<T>
Constructor and Description |
---|
HistoricalLinkedHashSet(HistoryManager historyManager)
Constructor.
|
HistoricalLinkedHashSet(HistoryManager historyManager,
Collection<? extends E> c)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
LinkedHashSet<E> |
get()
Returns the current set.
|
LinkedHashSet<E> |
get(Time time)
Returns a past set.
|
String |
toString() |
add, addAll, clear, contains, containsAll, fill, fill, getCollection, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray
addEvent, cleanUpHistory, getEvent, getEvents, getLastEvent, isLastState, now, removeEvent
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
removeIf
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, spliterator, toArray, toArray
parallelStream, stream
public HistoricalLinkedHashSet(HistoryManager historyManager)
historyManager
- HistoryManager; history managerpublic HistoricalLinkedHashSet(HistoryManager historyManager, Collection<? extends E> c)
historyManager
- HistoryManager; history managerc
- Collection<? extends E>; initial collectionpublic LinkedHashSet<E> get()
get
in interface HistoricalCollection<E>
get
in interface HistoricalSet<E>
public LinkedHashSet<E> get(Time time)
get
in interface HistoricalCollection<E>
get
in interface HistoricalSet<E>
time
- Time; time to obtain the set atCopyright © 2014–2019 Delft University of Technology. All rights reserved.