Class RecordTimeline<E>
java.lang.Object
nz.ac.vuw.ecs.swen225.gp6.recorder.datastructures.RecordTimeline<E>
- Type Parameters:
E- the type of the events
A generic record timeline class that stores a series of events in chronological order. Events can
only be added to the end of the timeline.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new Timeline.RecordTimeline(Stack<Pair<Long, E>> timeline) Creates a new timeline from an existing timeline. -
Method Summary
-
Constructor Details
-
RecordTimeline
public RecordTimeline()Creates a new Timeline. -
RecordTimeline
Creates a new timeline from an existing timeline.- Parameters:
timeline- the timeline to start from.
-
-
Method Details