Record Class AbstractNotifyMentionsObserver.LinkToAmetysObject
java.lang.Object
java.lang.Record
org.ametys.cms.repository.comment.contributor.AbstractNotifyMentionsObserver.LinkToAmetysObject
- Record Components:
linkUrl
- the link to the ametys objectlinkText
- the text of the link to the ametys object
- Enclosing class:
- AbstractNotifyMentionsObserver<T extends AmetysObject>
public static record AbstractNotifyMentionsObserver.LinkToAmetysObject(String linkUrl, I18nizableText linkText)
extends Record
Link to the ametys object
-
Constructor Summary
ConstructorDescriptionLinkToAmetysObject
(String linkUrl, I18nizableText linkText) Creates an instance of aLinkToAmetysObject
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.linkText()
Returns the value of thelinkText
record component.linkUrl()
Returns the value of thelinkUrl
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
Method Details
-
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
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)
. -
linkUrl
Returns the value of thelinkUrl
record component.- Returns:
- the value of the
linkUrl
record component
-
linkText
Returns the value of thelinkText
record component.- Returns:
- the value of the
linkText
record component
-