Class XdsTimeRange
java.lang.Object
org.projecthusky.communication.xdsmhdconversion.model.XdsTimeRange
Specifies a time range where the lower bound is inclusive and the upper bound is exclusive.
- Author:
- Quentin Ligier
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns whether the time range has a duration (i.e.void
Sets the lower bound of the time range.void
Sets the upper bound of the time range.
-
Constructor Details
-
XdsTimeRange
public XdsTimeRange()
-
-
Method Details
-
setLower
Sets the lower bound of the time range. It shall not be later than the upper bound, but can be the same instant.- Parameters:
lower
- The lower bound.- Throws:
IllegalArgumentException
- if the lower bound is after the upper one.
-
setUpper
Sets the upper bound of the time range. It shall not be sooner than the lower bound, but can be the same instant.- Parameters:
upper
- The upper bound.- Throws:
IllegalArgumentException
- if the upper bound is before the lower one.
-
hasDuration
public boolean hasDuration()Returns whether the time range has a duration (i.e. a lower and a upper bounds) or not.
-