Class TimeInterval
java.lang.Object
org.episteme.social.history.time.TimeInterval
- All Implemented Interfaces:
Serializable, Comparable<TimeCoordinate>, Temporal<TimeCoordinate>, TimeCoordinate
A continuous interval in time.
Defined by a start and an end instant.
- Since:
- 1.0
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintbooleanbooleangetEnd()Returns the precision of this coordinate.getStart()inthashCode()booleanisFuzzy()Returns whether this coordinate represents a range or has uncertainty.booleanoverlaps(TimeInterval other) Returns the exact instant this coordinate represents.toString()Methods inherited from interface TimeCoordinate
getWhen
-
Constructor Details
-
TimeInterval
-
-
Method Details
-
getStart
-
getEnd
-
toInstant
Description copied from interface:TimeCoordinateReturns the exact instant this coordinate represents. If the coordinate is fuzzy or an interval, this returns a representative point.- Specified by:
toInstantin interfaceTimeCoordinate- Returns:
- the instant
-
getPrecision
Description copied from interface:TimeCoordinateReturns the precision of this coordinate.- Specified by:
getPrecisionin interfaceTimeCoordinate- Returns:
- the precision level
-
isFuzzy
public boolean isFuzzy()Description copied from interface:TimeCoordinateReturns whether this coordinate represents a range or has uncertainty.- Specified by:
isFuzzyin interfaceTimeCoordinate- Returns:
- true if fuzzy or interval-based
-
contains
-
overlaps
-
compareTo
- Specified by:
compareToin interfaceComparable<TimeCoordinate>
-
toString
-
equals
-
hashCode
-