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-2020 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 Details

    • 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 interface Collection<E>