Package io.vertigo.social.comment
Record Class Comment
java.lang.Object
java.lang.Record
io.vertigo.social.comment.Comment
public record Comment(UUID uuid, io.vertigo.datamodel.data.model.UID<io.vertigo.account.account.Account> author, String authorDisplayName, String msg, Instant creationDate, Instant lastModified)
extends Record
- Author:
- pchretien
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionio.vertigo.datamodel.data.model.UID<io.vertigo.account.account.Account> author()Returns the value of theauthorrecord component.Returns the value of theauthorDisplayNamerecord component.static CommentBuilderbuilder()Static method factory for CommentBuilderReturns the value of thecreationDaterecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thelastModifiedrecord component.msg()Returns the value of themsgrecord component.final StringtoString()Returns a string representation of this record class.uuid()Returns the value of theuuidrecord component.
-
Constructor Details
-
Comment
public Comment(UUID uuid, io.vertigo.datamodel.data.model.UID<io.vertigo.account.account.Account> author, String authorDisplayName, String msg, Instant creationDate, Instant lastModified) Creates an instance of aCommentrecord class.- Parameters:
uuid- the value for theuuidrecord componentauthor- the value for theauthorrecord componentauthorDisplayName- the value for theauthorDisplayNamerecord componentmsg- the value for themsgrecord componentcreationDate- the value for thecreationDaterecord componentlastModified- the value for thelastModifiedrecord component
-
-
Method Details
-
builder
Static method factory for CommentBuilder- Returns:
- CommentBuilder
-
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). -
uuid
Returns the value of theuuidrecord component.- Returns:
- the value of the
uuidrecord component
-
author
public io.vertigo.datamodel.data.model.UID<io.vertigo.account.account.Account> author()Returns the value of theauthorrecord component.- Returns:
- the value of the
authorrecord component
-
authorDisplayName
Returns the value of theauthorDisplayNamerecord component.- Returns:
- the value of the
authorDisplayNamerecord component
-
msg
Returns the value of themsgrecord component.- Returns:
- the value of the
msgrecord component
-
creationDate
Returns the value of thecreationDaterecord component.- Returns:
- the value of the
creationDaterecord component
-
lastModified
Returns the value of thelastModifiedrecord component.- Returns:
- the value of the
lastModifiedrecord component
-