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.InternationalString
Components of this period duration.private final org.opengis.util.InternationalString
Components of this period duration.private final org.opengis.util.InternationalString
Components of this period duration.private final org.opengis.util.InternationalString
Components of this period duration.private final org.opengis.util.InternationalString
Components of this period duration.private final org.opengis.util.InternationalString
Components of this period duration.private final org.opengis.util.InternationalString
Components 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 TypeMethodDescriptionboolean
Compares with given object for equality.org.opengis.util.InternationalString
getDays()
A positive integer, followed by the character "D", which indicated the number of days in the period.org.opengis.util.InternationalString
getHours()
A positive integer, followed by the character "H", which indicated the number of hours in the period.org.opengis.util.InternationalString
A positive integer, followed by the character "M", which indicated the number of minutes in the period.org.opengis.util.InternationalString
A positive integer, followed by the character "M", which indicated the number of months in the period.org.opengis.util.InternationalString
A positive integer, followed by the character "S", which indicated the number of seconds in the period.org.opengis.util.InternationalString
getYears()
A positive integer, followed by the character "Y", which indicated the number of years in the period.int
hashCode()
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:PeriodDuration
A positive integer, followed by the character "Y", which indicated the number of years in the period.- Specified by:
getYears
in interfacePeriodDuration
-
getMonths
public org.opengis.util.InternationalString getMonths()Description copied from interface:PeriodDuration
A positive integer, followed by the character "M", which indicated the number of months in the period.- Specified by:
getMonths
in interfacePeriodDuration
-
getDays
public org.opengis.util.InternationalString getDays()Description copied from interface:PeriodDuration
A positive integer, followed by the character "D", which indicated the number of days in the period.- Specified by:
getDays
in interfacePeriodDuration
-
getHours
public org.opengis.util.InternationalString getHours()Description copied from interface:PeriodDuration
A positive integer, followed by the character "H", which indicated the number of hours in the period.- Specified by:
getHours
in interfacePeriodDuration
-
getMinutes
public org.opengis.util.InternationalString getMinutes()Description copied from interface:PeriodDuration
A positive integer, followed by the character "M", which indicated the number of minutes in the period.- Specified by:
getMinutes
in interfacePeriodDuration
-
getSeconds
public org.opengis.util.InternationalString getSeconds()Description copied from interface:PeriodDuration
A positive integer, followed by the character "S", which indicated the number of seconds in the period.- Specified by:
getSeconds
in interfacePeriodDuration
-
toString
String representation. -
hashCode
public int hashCode()Hash code value of the time position. -
equals
Compares with given object for equality.
-