Class DefaultTemporalFactory

java.lang.Object
org.apache.sis.internal.temporal.DefaultTemporalFactory
All Implemented Interfaces:
TemporalFactory

public final class DefaultTemporalFactory extends Object implements 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 Details

    • INSTANCE

      public static final TemporalFactory INSTANCE
      The unique instance of this factory.
  • Constructor Details

    • DefaultTemporalFactory

      private DefaultTemporalFactory()
      Creates the singleton instance.
  • Method Details

    • createInstant

      public Instant createInstant(Date date)
      Creates an Instant for the given date.
      Specified by:
      createInstant in interface TemporalFactory
    • createPeriod

      public Period createPeriod(Instant begin, Instant end)
      Creates a period for the two given instants.
      Specified by:
      createPeriod in interface TemporalFactory
    • 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 interface TemporalFactory