Record Class RepairPublicationResult
java.lang.Object
java.lang.Record
com.shaft.doctor.repair.RepairPublicationResult
- Record Components:
proposalId- proposal identifierbranchName- published branchcommitSha- published commitpullRequestUrl- draft pull-request URLreusedExisting- whether an existing draft PR was reused
-
Constructor Summary
ConstructorsConstructorDescriptionRepairPublicationResult(String proposalId, String branchName, String commitSha, String pullRequestUrl, boolean reusedExisting) Creates an instance of aRepairPublicationResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebranchNamerecord component.Returns the value of thecommitSharecord 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 theproposalIdrecord component.Returns the value of thepullRequestUrlrecord component.booleanReturns the value of thereusedExistingrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
RepairPublicationResult
public RepairPublicationResult(String proposalId, String branchName, String commitSha, String pullRequestUrl, boolean reusedExisting) Creates an instance of aRepairPublicationResultrecord class.- Parameters:
proposalId- the value for theproposalIdrecord componentbranchName- the value for thebranchNamerecord componentcommitSha- the value for thecommitSharecord componentpullRequestUrl- the value for thepullRequestUrlrecord componentreusedExisting- the value for thereusedExistingrecord component
-
-
Method Details
-
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
proposalId
Returns the value of theproposalIdrecord component.- Returns:
- the value of the
proposalIdrecord component
-
branchName
Returns the value of thebranchNamerecord component.- Returns:
- the value of the
branchNamerecord component
-
commitSha
-
pullRequestUrl
Returns the value of thepullRequestUrlrecord component.- Returns:
- the value of the
pullRequestUrlrecord component
-
reusedExisting
public boolean reusedExisting()Returns the value of thereusedExistingrecord component.- Returns:
- the value of the
reusedExistingrecord component
-