Interface TimeCoordinate
- All Superinterfaces:
Comparable<TimeCoordinate>, Temporal<TimeCoordinate>
- All Known Implementing Classes:
CalendarCoordinate, FuzzyTimeInterval, FuzzyTimePoint, TimeInterval, TimePoint
Interface for a temporal coordinate, representing a position in time.
Analogous to
EarthCoordinate.- Since:
- 1.0
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
-
Method Summary
Modifier and TypeMethodDescriptionReturns the precision of this coordinate.default TimeCoordinategetWhen()Returns the temporal position (when) of this entity.booleanisFuzzy()Returns whether this coordinate represents a range or has uncertainty.Returns the exact instant this coordinate represents.Methods inherited from interface Comparable
compareTo
-
Method Details
-
toInstant
Instant toInstant()Returns the exact instant this coordinate represents. If the coordinate is fuzzy or an interval, this returns a representative point.- Returns:
- the instant
-
getPrecision
-
isFuzzy
boolean isFuzzy()Returns whether this coordinate represents a range or has uncertainty.- Returns:
- true if fuzzy or interval-based
-
getWhen
Description copied from interface:TemporalReturns the temporal position (when) of this entity.- Specified by:
getWhenin interfaceTemporal<TimeCoordinate>- Returns:
- the temporal position.
-