Class AbstractHistoricalCollection<E,​C extends Collection<E>>

    • Constructor Detail

      • AbstractHistoricalCollection

        protected AbstractHistoricalCollection​(HistoryManager historyManager,
                                               C collection)
        Constructor.
        Parameters:
        historyManager - HistoryManager; history manager
        collection - C; initial collection
    • Method Detail

      • getCollection

        protected final C getCollection()
        Returns the internal collection.
        Returns:
        C; internal collection
      • fill

        protected final C fill​(C collection)
        Fill collection with the current collection.
        Parameters:
        collection - C; collection to fill
        Returns:
        C; input collection filled
      • fill

        protected final C fill​(Time time,
                               C collection)
        Fill collection with the collection at the given simulation time.
        Parameters:
        time - Time; time
        collection - C; collection to fill
        Returns:
        C; input collection filled
      • add

        public boolean add​(E value)
        Specified by:
        add in interface Collection<E>
      • toArray

        public <T> T[] toArray​(T[] a)
        Specified by:
        toArray in interface Collection<E>