Package se.diabol.jenkins.pipeline.model
Record Class Change
java.lang.Object
java.lang.Record
se.diabol.jenkins.pipeline.model.Change
@ExportedBean(defaultVisibility=100)
public record Change(Contributor author, String message, String commitId, String url)
extends Record
One commit of a pipeline instance's change log.
-
Constructor Summary
ConstructorsConstructorDescriptionChange(Contributor author, String message, String commitId, String url) Creates an instance of aChangerecord class. -
Method Summary
Modifier and TypeMethodDescriptionauthor()Returns the value of theauthorrecord component.commitId()Returns the value of thecommitIdrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.message()Returns the value of themessagerecord component.final StringtoString()Returns a string representation of this record class.url()Returns the value of theurlrecord component.
-
Constructor Details
-
Change
Creates an instance of aChangerecord class.- Parameters:
author- the value for theauthorrecord componentmessage- the value for themessagerecord componentcommitId- the value for thecommitIdrecord componenturl- the value for theurlrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
author
Returns the value of theauthorrecord component.- Returns:
- the value of the
authorrecord component
-
message
Returns the value of themessagerecord component.- Returns:
- the value of the
messagerecord component
-
commitId
Returns the value of thecommitIdrecord component.- Returns:
- the value of the
commitIdrecord component
-
url
Returns the value of theurlrecord component.- Returns:
- the value of the
urlrecord component
-