|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.adobe.mediacore.utils.TimeRange
public final class TimeRange
Method Summary | |
---|---|
static long |
adjustTime(long time,
long begin,
long end)
Adjusts the time to be inside the specified range. |
boolean |
contains(long time)
|
static TimeRange |
createRange(long begin,
long duration)
Creates a new time range with the specified values as limits. |
long |
getBegin()
Returns the begin time for the time range. |
long |
getDuration()
Returns the duration of the time range. |
long |
getEnd()
Returns the end time of the time range. |
String |
toString()
Returns a String representation of the current time range. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public static TimeRange createRange(long begin, long duration)
begin
- The begin time.duration
- The time range duration.
public long getBegin()
public long getEnd()
public long getDuration()
public String toString()
toString
in class Object
public boolean contains(long time)
public static long adjustTime(long time, long begin, long end)
time
- the time to be adjustedbegin
- the begin timeend
- the end time
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |