Interface HistoricalCollection<E>
-
- Type Parameters:
E
- element type
- All Superinterfaces:
Collection<E>
,Iterable<E>
- All Known Subinterfaces:
HistoricalDeque<E>
,HistoricalList<E>
,HistoricalNavigableSet<E>
,HistoricalQueue<E>
,HistoricalSet<E>
,HistoricalSortedSet<E>
- All Known Implementing Classes:
AbstractHistoricalCollection
,AbstractHistoricalList
,AbstractHistoricalNavigableSet
,AbstractHistoricalQueue
,AbstractHistoricalSortedSet
,HistoricalArrayList
,HistoricalHashSet
,HistoricalLinkedHashSet
,HistoricalLinkedList
,HistoricalPriorityQueue
,HistoricalTreeSet
,HistoricalVector
public interface HistoricalCollection<E> extends Collection<E>
Interface for historical collections.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 Collection<E>
get()
Returns the current collection.Collection<E>
get(Time time)
Returns a past collection.default boolean
removeIf(Predicate<? super E> filter)
-
Methods inherited from interface java.util.Collection
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, parallelStream, remove, removeAll, retainAll, size, spliterator, stream, toArray, toArray, toArray
-
-
-
-
Method Detail
-
get
Collection<E> get()
Returns the current collection. This is not intended to be modified, and may be an unmodifiable.- Returns:
- Collection; current collection
-
get
Collection<E> get(Time time)
Returns a past collection.- Parameters:
time
- Time; time to obtain the collection at- Returns:
- Collection; past collection
-
removeIf
default boolean removeIf(Predicate<? super E> filter)
- Specified by:
removeIf
in interfaceCollection<E>
-
-