Record Class TimeRangeSpec.NowAnchoredSliding
java.lang.Object
java.lang.Record
com.inductiveautomation.historian.common.model.binding.TimeRangeSpec.NowAnchoredSliding
- All Implemented Interfaces:
TimeRangeSpec
- Enclosing interface:
TimeRangeSpec
public static record TimeRangeSpec.NowAnchoredSliding(Duration lookback)
extends Record
implements TimeRangeSpec
Sliding window anchored at the current tick's "now".
-
Nested Class Summary
Nested classes/interfaces inherited from interface TimeRangeSpec
TimeRangeSpec.FixedRange, TimeRangeSpec.NowAnchoredSliding, TimeRangeSpec.Resolved -
Constructor Summary
ConstructorsConstructorDescriptionNowAnchoredSliding(Duration lookback) Creates an instance of aNowAnchoredSlidingrecord class. -
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.lookback()Returns the value of thelookbackrecord component.Resolves to(now − lookback, now).final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
NowAnchoredSliding
Creates an instance of aNowAnchoredSlidingrecord class.- Parameters:
lookback- the value for thelookbackrecord component
-
-
Method Details
-
resolve
Resolves to(now − lookback, now).- 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). -
lookback
Returns the value of thelookbackrecord component.- Returns:
- the value of the
lookbackrecord component
-