@Deprecated public interface Duration
Modifier and Type | Field and Description |
---|---|
static String |
REGEX_DURATION
Deprecated.
|
static long |
serialVersionUID
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
int |
getDuration()
Deprecated.
the duration in seconds
|
String |
getDurationISO()
Deprecated.
Format and return the duration set by 'setDuration(int i)' or 'setDurationString(String a_aDuration)' as an ISO
conform String.
|
boolean |
isLonger(Duration x)
Deprecated.
isLess - tests if the duration of this JDFDuration is longer then the duration of the specified JDFDuration.
|
boolean |
isShorter(Duration x)
Deprecated.
isShorter - tests if the duration of this JDFDuration is less then the duration of the specified JDFDuration.
|
void |
setDuration(int i)
Deprecated.
setDuration sets a duration for this in seconds.
|
boolean |
setDurationISO(String a_aDuration)
Deprecated.
Set a duration.
|
static final long serialVersionUID
static final String REGEX_DURATION
String getDurationISO()
boolean setDurationISO(String a_aDuration)
a_aDuration
- formatted duration string 'P1Y2M3DT10H30M'void setDuration(int i)
i
- the duration in seconds. Values below '0' are set to '0'int getDuration()
boolean isLonger(Duration x)
x
- - the JDFDuration object you whant to compare with 'this' JDFDuration objectboolean isShorter(Duration x)
x
- - the JDFDuration object that duration you whant to compare with duration of 'this' JDFDuration objectCopyright © 2018. All rights reserved.