Interface HistoricalDeque<E>
-
- Type Parameters:
E
- element type
- All Superinterfaces:
Collection<E>
,Deque<E>
,HistoricalCollection<E>
,HistoricalQueue<E>
,Iterable<E>
,Queue<E>
- All Known Implementing Classes:
HistoricalLinkedList
public interface HistoricalDeque<E> extends HistoricalQueue<E>, Deque<E>
Interface for historical deques.Copyright (c) 2013-2022 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.- Version:
- $Revision$, $LastChangedDate$, by $Author$, initial version 3 feb. 2018
- Author:
- Alexander Verbraeck, Peter Knoppers, Wouter Schakel
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Deque<E>
get()
Returns the current deque.Deque<E>
get(Time time)
Returns a past deque.-
Methods inherited from interface java.util.Collection
clear, containsAll, equals, hashCode, isEmpty, parallelStream, removeAll, retainAll, spliterator, stream, toArray, toArray, toArray
-
Methods inherited from interface java.util.Deque
add, addAll, addFirst, addLast, contains, descendingIterator, element, getFirst, getLast, iterator, offer, offerFirst, offerLast, peek, peekFirst, peekLast, poll, pollFirst, pollLast, pop, push, remove, remove, removeFirst, removeFirstOccurrence, removeLast, removeLastOccurrence, size
-
Methods inherited from interface org.opentrafficsim.core.perception.collections.HistoricalCollection
removeIf
-
-
-
-
Method Detail
-
get
Deque<E> get()
Returns the current deque.- Specified by:
get
in interfaceHistoricalCollection<E>
- Specified by:
get
in interfaceHistoricalQueue<E>
- Returns:
- Deque; current deque
-
get
Deque<E> get(Time time)
Returns a past deque.- Specified by:
get
in interfaceHistoricalCollection<E>
- Specified by:
get
in interfaceHistoricalQueue<E>
- Parameters:
time
- Time; time to obtain the deque at- Returns:
- Deque; past deque
-
-