E
- element typeS
- navigable set typepublic abstract class AbstractHistoricalNavigableSet<E,S extends NavigableSet<E>> extends AbstractHistoricalSortedSet<E,S> implements HistoricalNavigableSet<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 |
AbstractHistoricalNavigableSet(HistoryManager historyManager,
S set)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
E |
ceiling(E e) |
Iterator<E> |
descendingIterator() |
NavigableSet<E> |
descendingSet() |
E |
floor(E e) |
NavigableSet<E> |
headSet(E toElement,
boolean inclusive) |
E |
higher(E e) |
E |
lower(E e) |
E |
pollFirst() |
E |
pollLast() |
NavigableSet<E> |
subSet(E fromElement,
boolean fromInclusive,
E toElement,
boolean toInclusive) |
NavigableSet<E> |
tailSet(E fromElement,
boolean inclusive) |
String |
toString() |
comparator, first, headSet, last, subSet, tailSet
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
get, get
removeIf
headSet, iterator, subSet, tailSet
comparator, first, last, spliterator
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, remove, removeAll, retainAll, size, toArray, toArray
parallelStream, stream
protected AbstractHistoricalNavigableSet(HistoryManager historyManager, S set)
historyManager
- HistoryManager; history managerset
- S; initial setpublic E pollFirst()
pollFirst
in interface NavigableSet<E>
public E pollLast()
pollLast
in interface NavigableSet<E>
public E lower(E e)
lower
in interface NavigableSet<E>
public E floor(E e)
floor
in interface NavigableSet<E>
public E ceiling(E e)
ceiling
in interface NavigableSet<E>
public E higher(E e)
higher
in interface NavigableSet<E>
public NavigableSet<E> descendingSet()
descendingSet
in interface NavigableSet<E>
public Iterator<E> descendingIterator()
descendingIterator
in interface NavigableSet<E>
public NavigableSet<E> subSet(E fromElement, boolean fromInclusive, E toElement, boolean toInclusive)
subSet
in interface NavigableSet<E>
public NavigableSet<E> headSet(E toElement, boolean inclusive)
headSet
in interface NavigableSet<E>
public NavigableSet<E> tailSet(E fromElement, boolean inclusive)
tailSet
in interface NavigableSet<E>
Copyright © 2014–2019 Delft University of Technology. All rights reserved.