|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectDefaultDuration
DefaultIntervalLength
public class DefaultIntervalLength
A data type for intervals of time which supports the expression of duration in terms of a specified multiple of a single unit of time.
Constructor Summary | |
---|---|
DefaultIntervalLength(Unit unit,
int radix,
int factor,
int value)
Creates a new instance of IntervalUnit example : Unit="second" radix=10 factor=3 value=7 specifies a time interval length of 7ms. |
Method Summary | |
---|---|
boolean |
equals(Object object)
|
int |
getFactor()
The exponent of the base. |
int |
getRadix()
A positive integer that is the base of the mulitplier of the unit. |
long |
getTimeInMillis()
|
Unit |
getUnit()
The unit of measure used to express the length of the interval. |
int |
getValue()
The length of the time interval as an integer multiple of one radix(-factor) of the specified unit. |
int |
hashCode()
|
String |
toString()
|
Methods inherited from class Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DefaultIntervalLength(Unit unit, int radix, int factor, int value)
unit
- radix
- factor
- value
- Method Detail |
---|
public Unit getUnit()
getUnit
in interface IntervalLength
public int getRadix()
getRadix
in interface IntervalLength
public int getFactor()
getFactor
in interface IntervalLength
public int getValue()
IntervalLength
getValue
in interface IntervalLength
public long getTimeInMillis()
getTimeInMillis
in class DefaultDuration
public boolean equals(Object object)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |