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 aMetadataPersistentData
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.@NotNull PersistentFlavor<? extends TagHistoryData>
Retrieves thePersistentFlavor
associated with this kind of persistent data.final int
hashCode()
Returns a hash code value for this object.quality()
Returns the value of thequality
record component.source()
Returns the value of thesource
record component.Returns the value of thetimestamp
record component.final String
toString()
Returns a string representation of this record class.value()
Returns the value of thevalue
record component.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods 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 aMetadataPersistentData
record class.- Parameters:
value
- the value for thevalue
record componentquality
- the value for thequality
record componenttimestamp
- the value for thetimestamp
record componentsource
- the value for thesource
record component
-
-
Method Details
-
getFlavor
Description copied from interface:PersistentData
Retrieves thePersistentFlavor
associated with this kind of persistent data.- Specified by:
getFlavor
in interfacePersistentData
- Specified by:
getFlavor
in interfaceTagHistoryData
- Returns:
- a
PersistentFlavor
object
-
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 thevalue
record component.- Returns:
- the value of the
value
record component
-
quality
Returns the value of thequality
record component.- Returns:
- the value of the
quality
record component
-
timestamp
Returns the value of thetimestamp
record component.- Returns:
- the value of the
timestamp
record component
-
source
Returns the value of thesource
record component.- Returns:
- the value of the
source
record component
-