Record Class RepairProposal.Publication
java.lang.Object
java.lang.Record
com.shaft.doctor.repair.RepairProposal.Publication
- Record Components:
url- draft pull-request URLcommitSha- published repair commitvalidationOverride- whether failed validation was explicitly overriddenoverrideRationale- recorded override rationale
- Enclosing class:
RepairProposal
-
Constructor Summary
ConstructorsConstructorDescriptionPublication(String url, String commitSha, boolean validationOverride, String overrideRationale) Creates an instance of aPublicationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns 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 theoverrideRationalerecord component.final StringtoString()Returns a string representation of this record class.url()Returns the value of theurlrecord component.booleanReturns the value of thevalidationOverriderecord component.
-
Constructor Details
-
Publication
public Publication(String url, String commitSha, boolean validationOverride, String overrideRationale) Creates an instance of aPublicationrecord class.- Parameters:
url- the value for theurlrecord componentcommitSha- the value for thecommitSharecord componentvalidationOverride- the value for thevalidationOverriderecord componentoverrideRationale- the value for theoverrideRationalerecord 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. -
url
-
commitSha
-
validationOverride
public boolean validationOverride()Returns the value of thevalidationOverriderecord component.- Returns:
- the value of the
validationOverriderecord component
-
overrideRationale
Returns the value of theoverrideRationalerecord component.- Returns:
- the value of the
overrideRationalerecord component
-