Record Class Metadata
java.lang.Object
java.lang.Record
app.dodb.smd.api.metadata.Metadata
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theparentMessageIdrecord component.Returns the value of theprincipalrecord component.Returns the value of thepropertiesrecord component.Returns the value of thetimestamprecord component.final StringtoString()Returns a string representation of this record class.static MetadatawithProperties(Map<String, String> properties)
-
Constructor Details
-
Metadata
public Metadata(Principal principal, Instant timestamp, MessageId parentMessageId, Map<String, String> properties) Creates an instance of aMetadatarecord class.- Parameters:
principal- the value for theprincipalrecord componenttimestamp- the value for thetimestamprecord componentparentMessageId- the value for theparentMessageIdrecord componentproperties- the value for thepropertiesrecord component
-
Metadata
-
-
Method Details
-
withProperties
-
and
-
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). -
principal
Returns the value of theprincipalrecord component.- Returns:
- the value of the
principalrecord component
-
timestamp
Returns the value of thetimestamprecord component.- Returns:
- the value of the
timestamprecord component
-
parentMessageId
Returns the value of theparentMessageIdrecord component.- Returns:
- the value of the
parentMessageIdrecord component
-
properties
-