|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.geotools.temporal.object.DefaultDuration
org.geotools.temporal.object.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(javax.measure.unit.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(java.lang.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()
|
javax.measure.unit.Unit |
getUnit()
The unit of measure used to express the length of the interval. |
int |
getValue()
|
int |
hashCode()
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DefaultIntervalLength(javax.measure.unit.Unit unit, int radix, int factor, int value)
unit
- radix
- factor
- value
- Method Detail |
---|
public javax.measure.unit.Unit getUnit()
getUnit
in interface org.opengis.temporal.IntervalLength
public int getRadix()
getRadix
in interface org.opengis.temporal.IntervalLength
public int getFactor()
getFactor
in interface org.opengis.temporal.IntervalLength
public int getValue()
getValue
in interface org.opengis.temporal.IntervalLength
public long getTimeInMillis()
getTimeInMillis
in class DefaultDuration
public boolean equals(java.lang.Object object)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |