Record Class PageConvertedToBlogEvent
java.lang.Object
java.lang.Record
com.atlassian.confluence.event.events.content.PageConvertedToBlogEvent
-
Constructor Summary
ConstructorsConstructorDescriptionPageConvertedToBlogEvent
(long pageId, Page sourcePage, BlogPost blogPost) Creates an instance of aPageConvertedToBlogEvent
record class. -
Method Summary
Modifier and TypeMethodDescriptionblogPost()
Returns the value of theblogPost
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.long
pageId()
Returns the value of thepageId
record component.Returns the value of thesourcePage
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
PageConvertedToBlogEvent
Creates an instance of aPageConvertedToBlogEvent
record class.- Parameters:
pageId
- the value for thepageId
record componentsourcePage
- the value for thesourcePage
record componentblogPost
- the value for theblogPost
record component
-
-
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
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. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
pageId
public long pageId()Returns the value of thepageId
record component.- Returns:
- the value of the
pageId
record component
-
sourcePage
Returns the value of thesourcePage
record component.- Returns:
- the value of the
sourcePage
record component
-
blogPost
Returns the value of theblogPost
record component.- Returns:
- the value of the
blogPost
record component
-