Class Interval
java.lang.Object
org.openstreetmap.josm.tools.date.Interval
A timespan defined by a start and end instant.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
start
-
end
-
-
Constructor Details
-
Interval
Constructs a newInterval- Parameters:
start- start instantend- end instant
-
-
Method Details
-
toString
Returns an ISO 8601 compatible string -
format
Formats the interval of the given track as a human readable string- Returns:
- The interval as a string
-
getStart
Returns start instant.- Returns:
- start instant
-
getEnd
Returns end instant.- Returns:
- end instant
-
equals
-
hashCode
-