public class DefaultIntervalLength extends DefaultDuration implements IntervalLength
| Constructor and 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.
|
| Modifier and Type | Method and Description |
|---|---|
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()
|
int |
hashCode() |
String |
toString() |
public DefaultIntervalLength(Unit unit,
int radix,
int factor,
int value)
unit - radix - factor - value - public Unit getUnit()
getUnit in interface IntervalLengthpublic int getRadix()
getRadix in interface IntervalLengthpublic int getFactor()
getFactor in interface IntervalLengthpublic int getValue()
IntervalLengthgetValue in interface IntervalLengthpublic long getTimeInMillis()
getTimeInMillis in class DefaultDurationCopyright © 1996–2019 Geotools. All rights reserved.