Interface HistoricalList<E>
-
- Type Parameters:
E
- element type
- All Superinterfaces:
Collection<E>
,HistoricalCollection<E>
,Iterable<E>
,List<E>
- All Known Implementing Classes:
AbstractHistoricalList
,HistoricalArrayList
,HistoricalLinkedList
,HistoricalVector
public interface HistoricalList<E> extends HistoricalCollection<E>, List<E>
Interface for historical lists.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 Default Methods Modifier and Type Method Description List<E>
get()
Returns the current list.List<E>
get(Time time)
Returns a past list.default void
replaceAll(UnaryOperator<E> operator)
default void
sort(Comparator<? super E> c)
-
Methods inherited from interface java.util.Collection
parallelStream, stream, toArray
-
Methods inherited from interface org.opentrafficsim.core.perception.collections.HistoricalCollection
removeIf
-
-
-
-
Method Detail
-
get
List<E> get()
Returns the current list.- Specified by:
get
in interfaceHistoricalCollection<E>
- Returns:
- List; current list
-
get
List<E> get(Time time)
Returns a past list.- Specified by:
get
in interfaceHistoricalCollection<E>
- Parameters:
time
- Time; time to obtain the list at- Returns:
- List; past list
-
replaceAll
default void replaceAll(UnaryOperator<E> operator)
- Specified by:
replaceAll
in interfaceList<E>
-
sort
default void sort(Comparator<? super E> c)
-
-