boolean
|
after(SegmentedTimeline.Segment other)
Returns true if this segment is wholly after another
segment.
|
boolean
|
before(SegmentedTimeline.Segment other)
Returns true if this segment is wholly before another
segment.
|
long
|
calculateSegmentNumber(long millis)
Calculates the segment number for a given millisecond.
|
int
|
compareTo(Object object)
Will compare this Segment with another Segment (from Comparable
interface).
|
boolean
|
contained(long from, long to)
Returns true if this segment is contained in an
interval.
|
boolean
|
contains(long millis)
Returns true if a particular millisecond is contained in this
segment.
|
boolean
|
contains(SegmentedTimeline.Segment segment)
Returns true if a segment is contained in this segment.
|
boolean
|
contains(long from, long to)
Returns true if an interval is contained in this
segment.
|
SegmentedTimeline.Segment
|
copy()
Returns a copy of ourselves or null if there was an
exception during cloning.
|
void
|
dec(long n)
Decrements the internal attributes of this segment by a number of
segments.
|
void
|
dec()
Decrements the internal attributes of this segment by one segment.
|
boolean
|
equals(Object object)
Tests an object (usually another Segment ) for equality
with this segment.
|
Date
|
getDate()
Returns a Date that represents the reference point
for this segment.
|
long
|
getMillisecond()
Returns the millisecond used to reference this segment (always
between the segmentStart and segmentEnd).
|
long
|
getSegmentCount()
Returns always one (the number of segments contained in this
segment).
|
long
|
getSegmentEnd()
Gets the end of this segment in ms.
|
long
|
getSegmentNumber()
Returns the segment number of this segment.
|
long
|
getSegmentStart()
Gets the start of this segment in ms.
|
boolean
|
inExceptionSegments()
Returns true if we are an exception segment.
|
boolean
|
inExcludeSegments()
Returns true if we are an excluded segment.
|
boolean
|
inIncludeSegments()
Returns true if we are an included segment and we are not an
exception.
|
void
|
inc(long n)
Increments the internal attributes of this segment by a number of
segments.
|
void
|
inc()
Increments the internal attributes of this segment by one segment.
|
SegmentedTimeline.Segment
|
intersect(long from, long to)
Returns a segment that is the intersection of this segment and the
interval.
|
void
|
moveIndexToEnd()
Moves the index of this segment to the end of the segment.
|
void
|
moveIndexToStart()
Moves the index of this segment to the beginning if the segment.
|