Record Class PullRequest
java.lang.Object
java.lang.Record
io.jenkins.plugins.explain_error.autofix.scm.PullRequest
-
Constructor Summary
ConstructorsConstructorDescriptionPullRequest(int number, String url, String headBranch, String baseBranch) Creates an instance of aPullRequestrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebaseBranchrecord 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 theheadBranchrecord component.intnumber()Returns the value of thenumberrecord component.final StringtoString()Returns a string representation of this record class.url()Returns the value of theurlrecord component.
-
Constructor Details
-
PullRequest
Creates an instance of aPullRequestrecord class.- Parameters:
number- the value for thenumberrecord componenturl- the value for theurlrecord componentheadBranch- the value for theheadBranchrecord componentbaseBranch- the value for thebaseBranchrecord 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 '=='. -
number
public int number()Returns the value of thenumberrecord component.- Returns:
- the value of the
numberrecord component
-
url
Returns the value of theurlrecord component.- Returns:
- the value of the
urlrecord component
-
headBranch
Returns the value of theheadBranchrecord component.- Returns:
- the value of the
headBranchrecord component
-
baseBranch
Returns the value of thebaseBranchrecord component.- Returns:
- the value of the
baseBranchrecord component
-