Record Class CollectionSnapshot
java.lang.Object
java.lang.Record
com.inductiveautomation.historian.gateway.api.storage.realtime.CollectionSnapshot
public record CollectionSnapshot(CollectedPoints collectedPoints, @Nullable CollectionContext collectionContext)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionCollectionSnapshot(CollectedPoints collectedPoints, @Nullable CollectionContext collectionContext) Creates an instance of aCollectionSnapshotrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecollectedPointsrecord component.@Nullable CollectionContextReturns the value of thecollectionContextrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.static CollectionSnapshotof(CollectedPoints collectedPoints, CollectionContext collectionContext) final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CollectionSnapshot
public CollectionSnapshot(CollectedPoints collectedPoints, @Nullable CollectionContext collectionContext) Creates an instance of aCollectionSnapshotrecord class.- Parameters:
collectedPoints- the value for thecollectedPointsrecord componentcollectionContext- the value for thecollectionContextrecord component
-
-
Method Details
-
of
public static CollectionSnapshot of(CollectedPoints collectedPoints, CollectionContext collectionContext) -
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). -
collectedPoints
Returns the value of thecollectedPointsrecord component.- Returns:
- the value of the
collectedPointsrecord component
-
collectionContext
Returns the value of thecollectionContextrecord component.- Returns:
- the value of the
collectionContextrecord component
-