Class TimelineSet

  • All Implemented Interfaces:
    java.io.Serializable

    public class TimelineSet
    extends java.lang.Object
    implements java.io.Serializable
    This class is used to organize overlapping time events. The set contains multiple Timelines. Each timeline specifies multiple time segments that can't overlap. Inside of a TimelinSet, multiple timelines can overlap. The class provides multiple functions for determining coverage, hit count, next event, etc.
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.util.Collection<Timeline> timelines  
    • Constructor Summary

      Constructors 
      Constructor Description
      TimelineSet​(java.util.Collection<Timeline> timelines)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int hitCount​(long time)  
      void merge​(TimelineSet other)  
      long nextEvent​(long time)  
      • Methods inherited from class java.lang.Object

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

      • timelines

        protected java.util.Collection<Timeline> timelines
    • Constructor Detail

      • TimelineSet

        public TimelineSet​(java.util.Collection<Timeline> timelines)
    • Method Detail

      • hitCount

        public int hitCount​(long time)
      • nextEvent

        public long nextEvent​(long time)