E
- element typeS
- sorted set typepublic abstract class AbstractHistoricalSortedSet<E,S extends SortedSet<E>> extends AbstractHistoricalCollection<E,S> implements HistoricalSortedSet<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>
Modifier | Constructor and Description |
---|---|
protected |
AbstractHistoricalSortedSet(HistoryManager historyManager,
S set)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Comparator<? super E> |
comparator() |
E |
first() |
SortedSet<E> |
headSet(E toElement) |
E |
last() |
SortedSet<E> |
subSet(E fromElement,
E toElement) |
SortedSet<E> |
tailSet(E fromElement) |
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, toString, wait, wait, wait
get, get
removeIf
spliterator
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray
parallelStream, stream
protected AbstractHistoricalSortedSet(HistoryManager historyManager, S set)
historyManager
- HistoryManager; history managerset
- S; initial setpublic Comparator<? super E> comparator()
comparator
in interface SortedSet<E>
Copyright © 2014–2019 Delft University of Technology. All rights reserved.