Record Class SourceChangePoint

java.lang.Object
java.lang.Record
com.inductiveautomation.historian.common.model.data.SourceChangePoint
All Implemented Interfaces:
ChangePoint<SourceChangePoint.SourceMapKey>, TemporalPoint<SourceChangePoint.SourceMapKey,ChangePointType>, Comparable<TemporalPoint<SourceChangePoint.SourceMapKey,ChangePointType>>

public record SourceChangePoint(SourceChangePoint.SourceMapKey value, Instant timestamp) extends Record implements ChangePoint<SourceChangePoint.SourceMapKey>
Represents a change point for source changes.

This record encapsulates the details of a source change, including the value of the change and the timestamp when the change occurred. It implements the ChangePoint interface with SourceChangePoint.SourceMapKey as the type parameter.

  • Constructor Details

    • SourceChangePoint

      public SourceChangePoint(SourceChangePoint.SourceMapKey value, Instant timestamp)
      Constructs a SourceChangePoint with null checks and a default timestamp.

      Ensures that the value is not null and assigns the current time as the default timestamp if none is provided.

      Parameters:
      value - The source change value, must not be null.
      timestamp - The timestamp of the change, defaults to the current time if null.
  • Method Details