Class Sequence<T>

  • Type Parameters:
    T - The type of the object which is the source of this sequence.

    public class Sequence<T>
    extends java.lang.Object
    Class which models a sequence.
    • Constructor Summary

      Constructors 
      Constructor Description
      Sequence​(Event[] events, T source)
      Creates a new sequence made up of the specified events and derived from the specified source.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Event[] getEvents()
      Returns the events which make up this sequence.
      T getSource()
      Returns an object from which this sequence can be derived.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Sequence

        public Sequence​(Event[] events,
                        T source)
        Creates a new sequence made up of the specified events and derived from the specified source.
        Parameters:
        events - The events of the sequence.
        source - The source object for this sequence.
    • Method Detail

      • getEvents

        public Event[] getEvents()
        Returns the events which make up this sequence.
        Returns:
        the events which make up this sequence.
      • getSource

        public T getSource()
        Returns an object from which this sequence can be derived. This object is used when the events for this sequence need to be re-derived such as in a call to SequenceStream.updateContext.
        Returns:
        an object from which this sequence can be derived.