Package org.apache.sis.internal.temporal
Class DefaultInstant
java.lang.Object
org.apache.sis.internal.temporal.DefaultInstant
- All Implemented Interfaces:
Instant
,org.opengis.temporal.TemporalPrimitive
Default implementation of GeoAPI instant. 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
Constructors -
Method Summary
-
Field Details
-
millis
private final long millisThe date in milliseconds since epoch.
-
-
Constructor Details
-
DefaultInstant
DefaultInstant(Date time) Creates a new instant for the given date.
-
-
Method Details
-
getDate
Returns the date used for describing temporal position. -
toString
String representation in ISO format. -
hashCode
public int hashCode()Hash code value of the time position. -
equals
Compares with given object for equality.
-