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 aPageConvertedToBlogEventrecord class. -
Method Summary
Modifier and TypeMethodDescriptionblogPost()Returns the value of theblogPostrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longpageId()Returns the value of thepageIdrecord component.Returns the value of thesourcePagerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PageConvertedToBlogEvent
Creates an instance of aPageConvertedToBlogEventrecord class.- Parameters:
pageId- the value for thepageIdrecord componentsourcePage- the value for thesourcePagerecord componentblogPost- the value for theblogPostrecord 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 thepageIdrecord component.- Returns:
- the value of the
pageIdrecord component
-
sourcePage
Returns the value of thesourcePagerecord component.- Returns:
- the value of the
sourcePagerecord component
-
blogPost
Returns the value of theblogPostrecord component.- Returns:
- the value of the
blogPostrecord component
-