Package org.geotools.temporal.object
Class DefaultOrdinalPosition
- Object
-
- DefaultTemporalPosition
-
- DefaultOrdinalPosition
-
- All Implemented Interfaces:
OrdinalPosition
,TemporalPosition
public class DefaultOrdinalPosition extends DefaultTemporalPosition implements OrdinalPosition
A data type that shall be used for identifying temporal position within an ordinal temporal reference system.- Author:
- Mehdi Sidhoum (Geomatys)
-
-
Constructor Summary
Constructors Constructor Description DefaultOrdinalPosition(TemporalReferenceSystem frame, IndeterminateValue indeterminatePosition, OrdinalEra ordinalPosition)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object object)
OrdinalEra
getOrdinalPosition()
Provides a reference to the ordinal era in which the instant occurs.int
hashCode()
void
setOrdinalPosition(OrdinalEra ordinalPosition)
String
toString()
-
Methods inherited from class DefaultTemporalPosition
getFrame, getIndeterminatePosition, setFrame, setIndeterminatePosition
-
Methods inherited from interface TemporalPosition
getIndeterminatePosition
-
-
-
-
Constructor Detail
-
DefaultOrdinalPosition
public DefaultOrdinalPosition(TemporalReferenceSystem frame, IndeterminateValue indeterminatePosition, OrdinalEra ordinalPosition)
-
-
Method Detail
-
getOrdinalPosition
public OrdinalEra getOrdinalPosition()
Provides a reference to the ordinal era in which the instant occurs.- Specified by:
getOrdinalPosition
in interfaceOrdinalPosition
-
setOrdinalPosition
public void setOrdinalPosition(OrdinalEra ordinalPosition)
-
equals
public boolean equals(Object object)
- Overrides:
equals
in classDefaultTemporalPosition
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classDefaultTemporalPosition
-
toString
public String toString()
- Overrides:
toString
in classDefaultTemporalPosition
-
-