Package org.geotools.temporal.object
Class DefaultClockTime
- Object
-
- DefaultTemporalPosition
-
- DefaultClockTime
-
- All Implemented Interfaces:
ClockTime
,TemporalPosition
public class DefaultClockTime extends DefaultTemporalPosition implements ClockTime
A data type that shall be used to identify a temporal position within a day. Because temporal position cannot by itself completely identify a single temporal position; it shall be used with calendar date for that purpose. It may be also used to identify the time of occurrence of an event that recurs every day.- Author:
- Mehdi Sidhoum (Geomatys)
-
-
Constructor Summary
Constructors Constructor Description DefaultClockTime(TemporalReferenceSystem frame, IndeterminateValue indeterminatePosition, Number... clockTime)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object object)
Number[]
getClockTime()
A sequence of numbers with a structure similar to that ofCalendarDate
.int
hashCode()
void
setClockTime(Number... clockTime)
String
toString()
-
Methods inherited from class DefaultTemporalPosition
getFrame, getIndeterminatePosition, setFrame, setIndeterminatePosition
-
Methods inherited from interface TemporalPosition
getIndeterminatePosition
-
-
-
-
Constructor Detail
-
DefaultClockTime
public DefaultClockTime(TemporalReferenceSystem frame, IndeterminateValue indeterminatePosition, Number... clockTime)
-
-
Method Detail
-
getClockTime
public Number[] getClockTime()
A sequence of numbers with a structure similar to that ofCalendarDate
. The first number integer identifies a specific instance of the unit used at the highest level of the clock hierarchy, the second number identifies a specific instance of the unit used at the next lower level, and so on. All but the last number in the sequence shall be integers; the last number may be integer or real.- Specified by:
getClockTime
in interfaceClockTime
-
setClockTime
public void setClockTime(Number... clockTime)
-
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
-
-