Package org.geotools.temporal.object
Class DefaultIntervalLength
- Object
- 
- DefaultDuration
- 
- DefaultIntervalLength
 
 
- 
- All Implemented Interfaces:
- Duration,- IntervalLength
 
 public class DefaultIntervalLength extends DefaultDuration implements IntervalLength 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.- Author:
- Mehdi Sidhoum (Geomatys)
 
- 
- 
Constructor SummaryConstructors Constructor Description 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 SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object object)intgetFactor()The exponent of the base.intgetRadix()A positive integer that is the base of the mulitplier of the unit.longgetTimeInMillis()UnitgetUnit()The unit of measure used to express the length of the interval.intgetValue()inthashCode()StringtoString()
 
- 
- 
- 
Method Detail- 
getUnitpublic Unit getUnit() The unit of measure used to express the length of the interval.- Specified by:
- getUnitin interface- IntervalLength
 
 - 
getRadixpublic int getRadix() A positive integer that is the base of the mulitplier of the unit.- Specified by:
- getRadixin interface- IntervalLength
 
 - 
getFactorpublic int getFactor() The exponent of the base.- Specified by:
- getFactorin interface- IntervalLength
 
 - 
getValuepublic int getValue() Description copied from interface:IntervalLength- Specified by:
- getValuein interface- IntervalLength
 
 - 
getTimeInMillispublic long getTimeInMillis() - Specified by:
- getTimeInMillisin class- DefaultDuration
 
 
- 
 
-