Record Class TimeRangeSpec.FixedRange
java.lang.Object
java.lang.Record
com.inductiveautomation.historian.common.model.binding.TimeRangeSpec.FixedRange
- All Implemented Interfaces:
TimeRangeSpec
- Enclosing interface:
TimeRangeSpec
public static record TimeRangeSpec.FixedRange(Instant start, Instant end)
extends Record
implements TimeRangeSpec
Absolute start/end.
resolve(Instant) ignores now.-
Nested Class Summary
Nested classes/interfaces inherited from interface TimeRangeSpec
TimeRangeSpec.FixedRange, TimeRangeSpec.NowAnchoredSliding, TimeRangeSpec.Resolved -
Constructor Summary
ConstructorsConstructorDescriptionFixedRange(Instant start, Instant end) Creates an instance of aFixedRangerecord class. -
Method Summary
Modifier and TypeMethodDescriptionend()Returns the value of theendrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Resolve to a concrete (start, end) pair at the suppliednowreference Instant.start()Returns the value of thestartrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
FixedRange
-
-
Method Details
-
resolve
Description copied from interface:TimeRangeSpecResolve to a concrete (start, end) pair at the suppliednowreference Instant.- Specified by:
resolvein interfaceTimeRangeSpec
-
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). -
start
Returns the value of thestartrecord component.- Returns:
- the value of the
startrecord component
-
end
Returns the value of theendrecord component.- Returns:
- the value of the
endrecord component
-