Class SegmentedTimeline.SegmentRange

    • Constructor Detail

      • SegmentRange

        public SegmentRange​(long fromMillisecond,
                            long toMillisecond)
        Creates a SegmentRange between a start and end domain values.
        Parameters:
        fromMillisecond - start of the range
        toMillisecond - end of the range
    • Method Detail

      • intersect

        public SegmentedTimeline.Segment intersect​(long from,
                                                   long to)
        Returns a segment that is the intersection of this segment and the interval.
        Overrides:
        intersect in class SegmentedTimeline.Segment
        Parameters:
        from - the start of the interval.
        to - the end of the interval.
        Returns:
        The intersection.
      • inIncludeSegments

        public boolean inIncludeSegments()
        Returns true if all Segments of this SegmentRenge are an included segment and are not an exception.
        Overrides:
        inIncludeSegments in class SegmentedTimeline.Segment
        Returns:
        true or false.
      • inc

        public void inc​(long n)
        Not implemented for SegmentRange. Always throws IllegalArgumentException.
        Overrides:
        inc in class SegmentedTimeline.Segment
        Parameters:
        n - Number of segments to increment.