Package org.apache.sis.internal.temporal
Class DefaultTemporalFactory
java.lang.Object
org.apache.sis.internal.temporal.DefaultTemporalFactory
- All Implemented Interfaces:
TemporalFactory
Default implementation of temporal object factory. 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 TypeFieldDescriptionstatic final TemporalFactory
The unique instance of this factory. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateInstant
(Date date) Creates anInstant
for the given date.createPeriod
(Instant begin, Instant end) Creates a period for the two given instants.createPeriodDuration
(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 period duration.
-
Field Details
-
INSTANCE
The unique instance of this factory.
-
-
Constructor Details
-
DefaultTemporalFactory
private DefaultTemporalFactory()Creates the singleton instance.
-
-
Method Details
-
createInstant
Creates anInstant
for the given date.- Specified by:
createInstant
in interfaceTemporalFactory
-
createPeriod
Creates a period for the two given instants.- Specified by:
createPeriod
in interfaceTemporalFactory
-
createPeriodDuration
public PeriodDuration createPeriodDuration(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 period duration.- Specified by:
createPeriodDuration
in interfaceTemporalFactory
-