public class NormalPlayTime extends Object
Modifier and Type | Class and Description |
---|---|
static class |
NormalPlayTime.Format |
Constructor and Description |
---|
NormalPlayTime(long milliseconds) |
NormalPlayTime(long hours,
long minutes,
long seconds,
long milliseconds) |
Modifier and Type | Method and Description |
---|---|
long |
getMilliseconds() |
String |
getString() |
String |
getString(NormalPlayTime.Format format)
We don't ignore the right zeros in milliseconds, a small compromise
|
void |
setMilliseconds(long milliseconds) |
static NormalPlayTime |
valueOf(String s) |
public NormalPlayTime(long milliseconds)
public NormalPlayTime(long hours, long minutes, long seconds, long milliseconds) throws org.fourthline.cling.model.types.InvalidValueException
org.fourthline.cling.model.types.InvalidValueException
public long getMilliseconds()
public void setMilliseconds(long milliseconds)
milliseconds
- the milliseconds to setpublic String getString()
public String getString(NormalPlayTime.Format format)
format
- public static NormalPlayTime valueOf(String s) throws org.fourthline.cling.model.types.InvalidValueException
org.fourthline.cling.model.types.InvalidValueException
Copyright © 2016 4th Line GmbH, Switzerland. All rights reserved.