|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbbc.rd.tvanytime.Duration
public class Duration
Duration: Represents a duration (of the form "PT00H25M30S");
Constructor Summary | |
---|---|
Duration()
Constructor for objects of type Duration represented in String of the form (e.g. |
|
Duration(long duration)
Constructor for objects of type Duration |
|
Duration(java.lang.String duration)
Constructor for objects of type Duration |
Method Summary | |
---|---|
java.lang.Object |
clone()
Clones itself. |
int |
getDays()
Get the days part of the duration string. |
java.lang.String |
getDurationAsString()
Get the duration |
long |
getDurationInMsec()
Get the duration in milliseconds |
int |
getHours()
Get the hours part of the hh:mm:ss |
int |
getMinutes()
Get the minutes part of the hh:mm:ss |
int |
getSeconds()
Get the seconds part of the hh:mm:ss |
void |
setDuration(long duration)
Set the duration |
void |
setDuration(java.lang.String duration)
Set the duration |
java.lang.String |
toString()
Returns string representation of this object. |
java.lang.String |
toString(int indent)
Returns string representation of this object. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Duration()
public Duration(java.lang.String duration) throws TVAnytimeException
duration
- string representation of the duration (e.g. "PT00H25M30S")
TVAnytimeException
- thrown when the duration string is of an unexpected formatpublic Duration(long duration)
duration
- represented by number of millisecondsMethod Detail |
---|
public java.lang.String getDurationAsString()
public long getDurationInMsec()
public int getDays()
public int getHours()
public int getMinutes()
public int getSeconds()
public void setDuration(java.lang.String duration) throws TVAnytimeException
duration
- string representation of the duration (e.g. "PT00H25M30S")
TVAnytimeException
public void setDuration(long duration)
duration
- number of millisecondspublic java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toString(int indent)
indent
- number of tabs to put before the string.
public java.lang.Object clone()
clone
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |