Record Class IdTimeRange
java.lang.Object
java.lang.Record
com.io7m.idstore.model.IdTimeRange
- Record Components:
timeLower- The lower timetimeUpper- The upper time
An inclusive range of time.
-
Constructor Summary
ConstructorsConstructorDescriptionIdTimeRange(OffsetDateTime timeLower, OffsetDateTime timeUpper) An inclusive range of time. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.static IdTimeRangelargest()Returns the value of thetimeLowerrecord component.Returns the value of thetimeUpperrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
IdTimeRange
An inclusive range of time.- Parameters:
timeLower- The lower timetimeUpper- The upper time
-
-
Method Details
-
largest
- Returns:
- The largest sensible time range
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
timeLower
-
timeUpper
-