Record Class MetadataPersistentData
java.lang.Object
java.lang.Record
com.inductiveautomation.ignition.gateway.history.MetadataPersistentData
- All Implemented Interfaces:
TagHistoryData,PersistentData
public record MetadataPersistentData(PropertySet value, QualityCode quality, Instant timestamp, QualifiedPath source)
extends Record
implements TagHistoryData
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionMetadataPersistentData(PropertySet value, QualityCode quality, Instant timestamp, QualifiedPath source) Creates an instance of aMetadataPersistentDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.@NotNull PersistentFlavor<? extends TagHistoryData>Retrieves thePersistentFlavorassociated with this kind of persistent data.final inthashCode()Returns a hash code value for this object.quality()Returns the value of thequalityrecord component.source()Returns the value of thesourcerecord component.Returns the value of thetimestamprecord component.final StringtoString()Returns a string representation of this record class.value()Returns the value of thevaluerecord component.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.inductiveautomation.ignition.gateway.storeforward.data.PersistentData
getDataCount
-
Field Details
-
FLAVOR
-
-
Constructor Details
-
MetadataPersistentData
public MetadataPersistentData(PropertySet value, QualityCode quality, Instant timestamp, QualifiedPath source) Creates an instance of aMetadataPersistentDatarecord class.- Parameters:
value- the value for thevaluerecord componentquality- the value for thequalityrecord componenttimestamp- the value for thetimestamprecord componentsource- the value for thesourcerecord component
-
-
Method Details
-
getFlavor
Description copied from interface:PersistentDataRetrieves thePersistentFlavorassociated with this kind of persistent data.- Specified by:
getFlavorin interfacePersistentData- Specified by:
getFlavorin interfaceTagHistoryData- Returns:
- a
PersistentFlavorobject
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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). -
value
Returns the value of thevaluerecord component.- Returns:
- the value of the
valuerecord component
-
quality
Returns the value of thequalityrecord component.- Returns:
- the value of the
qualityrecord component
-
timestamp
Returns the value of thetimestamprecord component.- Returns:
- the value of the
timestamprecord component
-
source
Returns the value of thesourcerecord component.- Returns:
- the value of the
sourcerecord component
-