Package org.apache.sis.internal.temporal
Class DefaultPeriodDuration
java.lang.Object
org.apache.sis.internal.temporal.DefaultPeriodDuration
- All Implemented Interfaces:
PeriodDuration,org.opengis.temporal.PeriodDuration
Default implementation of GeoAPI period duration. This is a temporary class;
GeoAPI temporal interfaces are expected to change a lot in a future revision.
- Since:
- 1.2
- Version:
- 1.2
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final org.opengis.util.InternationalStringComponents of this period duration.private final org.opengis.util.InternationalStringComponents of this period duration.private final org.opengis.util.InternationalStringComponents of this period duration.private final org.opengis.util.InternationalStringComponents of this period duration.private final org.opengis.util.InternationalStringComponents of this period duration.private final org.opengis.util.InternationalStringComponents of this period duration.private final org.opengis.util.InternationalStringComponents of this period duration. -
Constructor Summary
ConstructorsConstructorDescriptionDefaultPeriodDuration(org.opengis.util.InternationalString years, org.opengis.util.InternationalString months, org.opengis.util.InternationalString week, org.opengis.util.InternationalString days, org.opengis.util.InternationalString hours, org.opengis.util.InternationalString minutes, org.opengis.util.InternationalString seconds) Creates a new duration. -
Method Summary
Modifier and TypeMethodDescriptionbooleanCompares with given object for equality.org.opengis.util.InternationalStringgetDays()A positive integer, followed by the character "D", which indicated the number of days in the period.org.opengis.util.InternationalStringgetHours()A positive integer, followed by the character "H", which indicated the number of hours in the period.org.opengis.util.InternationalStringA positive integer, followed by the character "M", which indicated the number of minutes in the period.org.opengis.util.InternationalStringA positive integer, followed by the character "M", which indicated the number of months in the period.org.opengis.util.InternationalStringA positive integer, followed by the character "S", which indicated the number of seconds in the period.org.opengis.util.InternationalStringgetYears()A positive integer, followed by the character "Y", which indicated the number of years in the period.inthashCode()Hash code value of the time position.toString()String representation.
-
Field Details
-
years
private final org.opengis.util.InternationalString yearsComponents of this period duration. -
months
private final org.opengis.util.InternationalString monthsComponents of this period duration. -
week
private final org.opengis.util.InternationalString weekComponents of this period duration. -
days
private final org.opengis.util.InternationalString daysComponents of this period duration. -
hours
private final org.opengis.util.InternationalString hoursComponents of this period duration. -
minutes
private final org.opengis.util.InternationalString minutesComponents of this period duration. -
seconds
private final org.opengis.util.InternationalString secondsComponents of this period duration.
-
-
Constructor Details
-
DefaultPeriodDuration
DefaultPeriodDuration(org.opengis.util.InternationalString years, org.opengis.util.InternationalString months, org.opengis.util.InternationalString week, org.opengis.util.InternationalString days, org.opengis.util.InternationalString hours, org.opengis.util.InternationalString minutes, org.opengis.util.InternationalString seconds) Creates a new duration.
-
-
Method Details
-
getYears
public org.opengis.util.InternationalString getYears()Description copied from interface:PeriodDurationA positive integer, followed by the character "Y", which indicated the number of years in the period.- Specified by:
getYearsin interfacePeriodDuration
-
getMonths
public org.opengis.util.InternationalString getMonths()Description copied from interface:PeriodDurationA positive integer, followed by the character "M", which indicated the number of months in the period.- Specified by:
getMonthsin interfacePeriodDuration
-
getDays
public org.opengis.util.InternationalString getDays()Description copied from interface:PeriodDurationA positive integer, followed by the character "D", which indicated the number of days in the period.- Specified by:
getDaysin interfacePeriodDuration
-
getHours
public org.opengis.util.InternationalString getHours()Description copied from interface:PeriodDurationA positive integer, followed by the character "H", which indicated the number of hours in the period.- Specified by:
getHoursin interfacePeriodDuration
-
getMinutes
public org.opengis.util.InternationalString getMinutes()Description copied from interface:PeriodDurationA positive integer, followed by the character "M", which indicated the number of minutes in the period.- Specified by:
getMinutesin interfacePeriodDuration
-
getSeconds
public org.opengis.util.InternationalString getSeconds()Description copied from interface:PeriodDurationA positive integer, followed by the character "S", which indicated the number of seconds in the period.- Specified by:
getSecondsin interfacePeriodDuration
-
toString
String representation. -
hashCode
public int hashCode()Hash code value of the time position. -
equals
Compares with given object for equality.
-