public class TimecodeRange
extends java.lang.Object
| Constructor and Description |
|---|
TimecodeRange(Timecode start,
SampleCount duration) |
TimecodeRange(Timecode start,
Timecode end) |
| Modifier and Type | Method and Description |
|---|---|
TimecodeRange |
add(SampleCount samples)
Move the range right by the specified number of samples
|
boolean |
equals(java.lang.Object obj) |
SampleCount |
getDuration() |
Timecode |
getEnd() |
Timecode |
getStart() |
int |
hashCode() |
static TimecodeRange |
merge(TimecodeRange a,
TimecodeRange b)
Produce a new Timecode range which includes all timecodes from
a and b. |
boolean |
overlaps(TimecodeRange that)
Determines whether two timecode ranges overlap (or are equivalent)
|
TimecodeRange |
subtract(SampleCount samples)
Move the range left by the specified number of samples
|
TimecodeRange |
toOffset(Timecode reference)
Constructs a new TimecodeRange where the values are expressed as offsets from
reference. |
java.lang.String |
toString() |
boolean |
within(Timecode test)
Tests whether a timecode lies within (or on the boundaries of) this range
|
boolean |
within(TimecodeRange test)
Test whether a given timecode range lies wholly within (or on the boundaries of) this range
|
public TimecodeRange(Timecode start, SampleCount duration)
public Timecode getStart()
public Timecode getEnd()
public SampleCount getDuration()
public TimecodeRange toOffset(Timecode reference)
reference.reference - the reference timecode. Must be less than or equal to the start timecode for this rangepublic TimecodeRange subtract(SampleCount samples)
samples - public TimecodeRange add(SampleCount samples)
samples - public boolean within(Timecode test)
test - public boolean within(TimecodeRange test)
test - public boolean overlaps(TimecodeRange that)
that - some other timecode range. comparisons will be made based on the time representedpublic static TimecodeRange merge(TimecodeRange a, TimecodeRange b)
a and b. This may result in
coverage
of additional timecodes if the two ranges do not overlap.a - b - public java.lang.String toString()
toString in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.ObjectCopyright © 2014. All Rights Reserved.