|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.plumtree.portalpages.common.helpers.PTDuration
public class PTDuration
Field Summary | |
---|---|
protected long |
m_lMilliseconds
|
protected int |
m_nMASK_PossibleUnits
|
Constructor Summary | |
---|---|
PTDuration(long lMilliseconds,
int nMASKPossibleUnits)
Constructor. |
|
PTDuration(long lDuration,
int nDurationUnits,
int nMASKPossibleUnits)
Constructor. |
Method Summary | |
---|---|
int |
GetBestDurationUnit()
Returns the best duration unit possible from the MASK of available durations. |
int |
GetBestDurationUnit(int nDefaultUnits)
Returns the best duration unit possible from the MASK of available durations. |
int |
GetDurationInBestUnits()
Gets the duration in the longest supported units of time. |
int |
GetDurationInBestUnits(int nDefaultUnits)
Gets the duration in the longest supported units of time or in nDefaultUnits if the duration does not equally divide into the supported units. |
int |
GetDurationInUnits(int nDurationUnits)
Gets the duration in DurationUnits. |
int |
GetMilliseconds()
Returns the duration in milliseconds. |
static int |
GetShortestSupportedUnit(int nMASKSupportedUnits)
Returns the shortest time unit described in nMASK |
int |
GetSupportedUnitsMask()
Returns the mask of supported units. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected int m_nMASK_PossibleUnits
protected long m_lMilliseconds
Constructor Detail |
---|
public PTDuration(long lDuration, int nDurationUnits, int nMASKPossibleUnits)
lDuration
- nDurationUnits
- public PTDuration(long lMilliseconds, int nMASKPossibleUnits)
lMilliseconds
- Method Detail |
---|
public int GetBestDurationUnit(int nDefaultUnits)
nMASKSupportedUnits
- nDefaultUnits
-
public int GetBestDurationUnit()
nMASKSupportedUnits
- nDefaultUnits
-
public static int GetShortestSupportedUnit(int nMASKSupportedUnits)
nDurationUnits
-
public int GetDurationInBestUnits()
nDurationUnits
-
public int GetDurationInBestUnits(int nDefaultUnits)
nDurationUnits
-
public int GetDurationInUnits(int nDurationUnits)
nDurationUnits
-
public int GetMilliseconds()
public int GetSupportedUnitsMask()
|
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |