org.geotools.temporal.object
Class DefaultIntervalLength

java.lang.Object
  extended by org.geotools.temporal.object.DefaultDuration
      extended by org.geotools.temporal.object.DefaultIntervalLength
All Implemented Interfaces:
org.opengis.temporal.Duration, org.opengis.temporal.IntervalLength

public class DefaultIntervalLength
extends DefaultDuration
implements org.opengis.temporal.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 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

DefaultIntervalLength

public 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.

Parameters:
unit -
radix -
factor -
value -
Method Detail

getUnit

public javax.measure.unit.Unit getUnit()
The unit of measure used to express the length of the interval.

Specified by:
getUnit in interface org.opengis.temporal.IntervalLength

getRadix

public int getRadix()
A positive integer that is the base of the mulitplier of the unit.

Specified by:
getRadix in interface org.opengis.temporal.IntervalLength

getFactor

public int getFactor()
The exponent of the base.

Specified by:
getFactor in interface org.opengis.temporal.IntervalLength

getValue

public int getValue()
Specified by:
getValue in interface org.opengis.temporal.IntervalLength

getTimeInMillis

public long getTimeInMillis()
Specified by:
getTimeInMillis in class DefaultDuration

equals

public boolean equals(java.lang.Object object)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 1996-2010 Geotools. All Rights Reserved.