Class Event

  • All Implemented Interfaces:
    java.lang.Comparable<Event>

    public final class Event
    extends java.lang.Object
    implements java.lang.Comparable<Event>
    Event stored in the clip
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.String event  
      private float offset  
    • Constructor Summary

      Constructors 
      Constructor Description
      Event​(java.lang.String event, float offset)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int compareTo​(Event event)  
      java.lang.String event()  
      float offset()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • event

        private final java.lang.String event
      • offset

        private final float offset
    • Constructor Detail

      • Event

        public Event​(java.lang.String event,
                     float offset)
    • Method Detail

      • event

        public java.lang.String event()
        Returns:
        the name of the event.
      • offset

        public float offset()
        Returns:
        how long ago the event happened, relative to the next event / first query time
      • compareTo

        public int compareTo​(Event event)
        Specified by:
        compareTo in interface java.lang.Comparable<Event>
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object