Package org.apache.sis.internal.temporal
Class DefaultPeriod
java.lang.Object
org.apache.sis.internal.temporal.DefaultPeriod
- All Implemented Interfaces:
Period
,org.opengis.temporal.TemporalPrimitive
Default implementation of GeoAPI period. 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
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDefaultPeriod
(Instant beginning, Instant ending) Creates a new period with the given bounds. -
Method Summary
-
Field Details
-
beginning
Bounds making this period. -
ending
Bounds making this period.
-
-
Constructor Details
-
DefaultPeriod
Creates a new period with the given bounds.
-
-
Method Details
-
getBeginning
The beginning instant at which this period starts.- Specified by:
getBeginning
in interfacePeriod
- Returns:
- The beginning instant.
-
getEnding
The ending instant at which this period ends. -
toString
String representation. -
hashCode
public int hashCode()Hash code value of the time position. -
equals
Compares with given object for equality.
-