Package com.atlassian.confluence.pages
Record Class AddressableComment
java.lang.Object
java.lang.Record
com.atlassian.confluence.pages.AddressableComment
- All Implemented Interfaces:
Addressable
- Since:
- 9.3
-
Constructor Summary
ConstructorsConstructorDescriptionAddressableComment
(Comment comment) Creates an instance of aAddressableComment
record class. -
Method Summary
Modifier and TypeMethodDescriptioncomment()
Returns the value of thecomment
record component.final boolean
Indicates whether some other object is "equal to" this one.long
getId()
final int
hashCode()
Returns a hash code value for this object.static AddressableComment
final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
AddressableComment
Creates an instance of aAddressableComment
record class.- Parameters:
comment
- the value for thecomment
record component
-
-
Method Details
-
of
-
getId
public long getId()- Specified by:
getId
in interfaceAddressable
-
getDisplayTitle
- Specified by:
getDisplayTitle
in interfaceAddressable
- Returns:
- the title of the addressable object, suitable for display in a list
-
getUrlPath
- Specified by:
getUrlPath
in interfaceAddressable
-
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)
. -
comment
Returns the value of thecomment
record component.- Returns:
- the value of the
comment
record component
-