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 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
Copyright © 1996–2019 Geotools. All rights reserved.