public class DefaultDateAndTime extends DefaultTemporalPosition implements DateAndTime
Constructor and Description |
---|
DefaultDateAndTime(TemporalReferenceSystem frame,
IndeterminateValue indeterminatePosition,
InternationalString calendarEraName,
int[] calendarDate,
Number[] clockTime) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object object) |
int[] |
getCalendarDate()
Provides a sequence of integers in which the first integer identifies a specific instance of
the unit used at the highest level of the calendar hierarchy, the second integer identifies a
specific instance of the unit used at the next lower level in the hierarchy, and so on.
|
InternationalString |
getCalendarEraName()
Provides the name of the calendar era to which the date is
referenced.
|
Number[] |
getClockTime()
A sequence of numbers with a structure similar to that of
CalendarDate . |
int |
hashCode() |
void |
setCalendarDate(int[] calendarDate) |
void |
setCalendarEraName(InternationalString calendarEraName) |
void |
setClockTime(Number[] clockTime) |
String |
toString() |
getFrame, getIndeterminatePosition, setFrame, setIndeterminatePosition
getIndeterminatePosition
public DefaultDateAndTime(TemporalReferenceSystem frame, IndeterminateValue indeterminatePosition, InternationalString calendarEraName, int[] calendarDate, Number[] clockTime)
public Number[] getClockTime()
CalendarDate
. 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.getClockTime
in interface ClockTime
public InternationalString getCalendarEraName()
CalendarDate
getCalendarEraName
in interface CalendarDate
public int[] getCalendarDate()
getCalendarDate
in interface CalendarDate
public void setCalendarEraName(InternationalString calendarEraName)
public void setCalendarDate(int[] calendarDate)
public void setClockTime(Number[] clockTime)
public boolean equals(Object object)
equals
in class DefaultTemporalPosition
public int hashCode()
hashCode
in class DefaultTemporalPosition
public String toString()
toString
in class DefaultTemporalPosition
Copyright © 1996–2019 Geotools. All rights reserved.