Record Class LastModification
java.lang.Object
java.lang.Record
com.inductiveautomation.ignition.common.resourcecollection.LastModification
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe attribute keys under which last modification metadata is stored on a resource. -
Constructor Summary
ConstructorsConstructorDescriptionLastModification(String actor, Date timestamp) Creates an instance of aLastModificationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionactor()Returns the value of theactorrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.static Optional<LastModification> Returns the value of thetimestamprecord component.final StringtoString()Returns a string representation of this record class.static ResourceCreate a newResourcewith last modification entries in its attributes map.static booleanVerify thatresourcehas aLastModificationattribute and that the signature of that LastModification is still valid given the contents of the resource.
-
Field Details
-
ATTRIBUTE_KEYS
-
-
Constructor Details
-
LastModification
-
-
Method Details
-
of
-
update
Create a newResourcewith last modification entries in its attributes map. -
verify
Verify thatresourcehas aLastModificationattribute and that the signature of that LastModification is still valid given the contents of the resource.- Parameters:
resource- theResourceto verify.- Returns:
trueifresourcehas aLastModificationattribute and its signature is valid.
-
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). -
actor
Returns the value of theactorrecord component.- Returns:
- the value of the
actorrecord component
-
timestamp
Returns the value of thetimestamprecord component.- Returns:
- the value of the
timestamprecord component
-