Interface TimeCoordinate

All Superinterfaces:
Comparable<TimeCoordinate>, Temporal<TimeCoordinate>
All Known Implementing Classes:
CalendarCoordinate, FuzzyTimeInterval, FuzzyTimePoint, TimeInterval, TimePoint

public interface TimeCoordinate extends Temporal<TimeCoordinate>, Comparable<TimeCoordinate>
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 Type
    Method
    Description
    Returns the precision of this coordinate.
    Returns the temporal position (when) of this entity.
    boolean
    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

      TimePrecision getPrecision()
      Returns the precision of this coordinate.
      Returns:
      the precision level
    • isFuzzy

      boolean isFuzzy()
      Returns whether this coordinate represents a range or has uncertainty.
      Returns:
      true if fuzzy or interval-based
    • getWhen

      default TimeCoordinate getWhen()
      Description copied from interface: Temporal
      Returns the temporal position (when) of this entity.
      Specified by:
      getWhen in interface Temporal<TimeCoordinate>
      Returns:
      the temporal position.